]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
ppp: Honour LDFLAGS
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2016 00:31:52 +0000 (02:31 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2016 00:31:52 +0000 (02:31 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
ppp/ppp.nm

index e12c68a9ec66227bc1970860eba243bb3b3240a6..3e6a41f23060788e2252befb03e5048b68772e8d 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = ppp
 version    = 2.4.6
-release    = 2
+release    = 3
 
 groups     = System/Daemons
 url        = http://ppp.samba.org/
@@ -32,9 +32,6 @@ build
                systemd-units
        end
 
-       # Explicitely add -fPIC to CFLAGS.
-       CFLAGS += -fPIC
-
        prepare_cmds
                sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \
                        -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
@@ -48,7 +45,7 @@ build
        end
 
        make_build_targets += \
-               CC="gcc %{CFLAGS}"
+               CC="gcc %{CFLAGS} %{LDFLAGS}"
 
        install
                make install INSTROOT=%{BUILDROOT}