[zaptel-commits] russell: trunk r1296 - /trunk/Makefile

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Sun Aug 13 16:19:52 MST 2006


Author: russell
Date: Sun Aug 13 18:19:52 2006
New Revision: 1296

URL: http://svn.digium.com/view/zaptel?rev=1296&view=rev
Log:
use LDLIBS instead of LDFLAGS in various places (issue #7708, Mithraen)

Modified:
    trunk/Makefile

Modified: trunk/Makefile
URL: http://svn.digium.com/view/zaptel/trunk/Makefile?rev=1296&r1=1295&r2=1296&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Sun Aug 13 18:19:52 2006
@@ -237,7 +237,7 @@
 
 tor2ee.o: tor2-hw.h
 
-tor2ee: LDFLAGS+=-lpci
+tor2ee: LDLIBS+=-lpci
 
 zonedata.lo: zonedata.c
 	$(CC) -c $(LCFLAGS) -o $@ $^
@@ -259,7 +259,7 @@
 
 makefw: CFLAGS=
 
-gendigits: LDFLAGS+=-lm
+gendigits: LDLIBS+=-lm
 gendigits: CFLAGS=
 
 fw2h: CFLAGS=
@@ -280,14 +280,14 @@
 
 ztspeed: CFLAGS=
 ztspeed.o: CFLAGS=
-zttool: LDFLAGS+=$(NEWT_LIB)
+zttool: LDLIBS+=$(NEWT_LIB)
 sethdlc-new.o: CFLAGS+=-I$(KINCLUDES)
 
 libtonezone.a: $(TZOBJS)
 	ar rcs libtonezone.a $^
 
 $(LIBTONEZONE_SO): $(TZOBJS)
-	$(CC) -shared -Wl,-soname,$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) -lm -o $@ $^
+	$(CC) -shared -Wl,-soname,$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) -o $@ $^ -lm
 
 ztcfg.c: ztcfg.h
 
@@ -309,11 +309,11 @@
 complex.o: complex.cc
 	$(CC) -o $@ -c $^
 
-usbfxstest: LDFLAGS+=-lzap
+usbfxstest: LDLIBS+=-lzap
 fxstest: $(LIBTONEZONE_SO)
-fxstest: LDFLAGS+=-lm
-fxotune: LDFLAGS+=-lm
-fxsdump: LDFLAGS+=-lm
+fxstest: LDLIBS+=-lm
+fxotune: LDLIBS+=-lm
+fxsdump: LDLIBS+=-lm
 
 stackcheck: checkstack $(BUILDVER)
 	./checkstack *.o
@@ -328,7 +328,7 @@
 	$(MAKE) -C mISDNuser install
 
 $(UTILS): %: %.o
-	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDLIBS)
 
 $(UTILSO): %.o: %.c
 	$(CC) $(CFLAGS) -o $@ -c $<



More information about the zaptel-commits mailing list