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:
nbd 2009-02-02 17:25:40 +00:00
parent a62996a860
commit bfe5a8ed22
2 changed files with 20 additions and 1 deletions

View File

@ -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

View 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 $@