mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-23 08:33:48 +08:00
Fix build
This is for the case where command line overrides are set.
This commit is contained in:
+4
-4
@@ -2,9 +2,9 @@ R=../..
|
||||
include ${R}/config.mk
|
||||
|
||||
ifneq ($(UNAME),SunOS)
|
||||
LDFLAGS+=-Wl,-soname,libmosquittopp.so.${SOVERSION}
|
||||
LOCAL_LDFLAGS+=-Wl,-soname,libmosquittopp.so.${SOVERSION}
|
||||
endif
|
||||
CXXFLAGS+=-fPIC
|
||||
LOCAL_CXXFLAGS+=-fPIC
|
||||
|
||||
.PHONY : clean install
|
||||
|
||||
@@ -40,10 +40,10 @@ clean :
|
||||
-rm -f *.o libmosquittopp.so.${SOVERSION} libmosquittopp.a
|
||||
|
||||
libmosquittopp.so.${SOVERSION} : mosquittopp.o
|
||||
${CROSS_COMPILE}$(CXX) -shared $(LDFLAGS) $< -o $@ ../libmosquitto.so.${SOVERSION} $(LIDADD)
|
||||
${CROSS_COMPILE}$(CXX) -shared $(LOCAL_LDFLAGS) $< -o $@ ../libmosquitto.so.${SOVERSION} $(LIDADD)
|
||||
|
||||
libmosquittopp.a : mosquittopp.o
|
||||
${CROSS_COMPILE}$(AR) cr $@ $^
|
||||
|
||||
mosquittopp.o : mosquittopp.cpp ${R}/include/mosquittopp.h
|
||||
${CROSS_COMPILE}$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
|
||||
${CROSS_COMPILE}$(CXX) $(LOCAL_CPPFLAGS) $(LOCAL_CXXFLAGS) -c $< -o $@
|
||||
|
||||
Reference in New Issue
Block a user