fix stun compile on avr32, brcm-2.4
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14364 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a62996a860
commit
bfe5a8ed22
@ -60,7 +60,7 @@ define Build/Compile
|
||||
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
||||
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
||||
LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -L$(TOOLCHAIN_DIR)/usr/lib \
|
||||
-nodefaultlibs -luClibc++ -lgcc" \
|
||||
-nodefaultlibs -luClibc++ $(LIBGCC_S)" \
|
||||
all
|
||||
endef
|
||||
|
||||
|
19
net/stun/patches/002-linking_order.patch
Normal file
19
net/stun/patches/002-linking_order.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -37,13 +37,13 @@
|
||||
$(addprefix stund/, $(TARS))
|
||||
|
||||
server: server.o stun.o udp.o
|
||||
- $(CXX) $(LDFLAGS) -o $@ $^
|
||||
+ $(CXX) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
tlsServer: tlsServer.o stun.o udp.o
|
||||
- $(CXX) $(LDFLAGS) -o $@ $^
|
||||
+ $(CXX) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
client: client.o stun.o udp.o
|
||||
- $(CXX) $(LDFLAGS) -o $@ $^
|
||||
+ $(CXX) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
%.o:%.cxx
|
||||
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
|
Loading…
x
Reference in New Issue
Block a user