]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
genl Makefile LDFLAGS
authorStephen Hemminger <shemminger@osdl.org>
Thu, 19 Oct 2006 20:13:20 +0000 (13:13 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 19 Oct 2006 20:13:20 +0000 (13:13 -0700)
The current genl Makefile sticks -lm and -ldl into LDFLAGS ... however, this
does not create the proper link order as the implicit Makefile rules will
place LDFLAGS before object files

attached patch uses LDLIBS for -lm and -ldl and make's implicit rule will
place them in the proper location

also, i removed the -s argument to `install` as install does stripping
improperly in many scenarios (such as cross-compiling) ... and in general,
it's nice if the decision to strip is handled by the sysadmin
-mike

genl/Makefile

index 4436508dfc4a219b468302e36dd58aa6eba04c45..6435875549a6ed8ef17eaa93e8d5b942ef5e56f2 100644 (file)
@@ -9,14 +9,15 @@ GENLOBJ += $(GENLMODULES)
 
 GENLLIB :=
 
-LDFLAGS += -Wl,-export-dynamic -lm -ldl
+LDFLAGS += -Wl,-export-dynamic
+LDLIBS  += -lm -ldl
 
 all: genl
 
 genl: $(GENLOBJ) $(LIBNETLINK) $(LIBUTIL) $(GENLLIB)
 
 install: all
-       install -m 0755 -s genl $(DESTDIR)$(SBINDIR)
+       install -m 0755 genl $(DESTDIR)$(SBINDIR)
 
 clean:
        rm -f $(GENLOBJ) $(GENLLIB) genl