]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
ppp: Fix build error on x86_64.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Mar 2012 14:55:50 +0000 (15:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Mar 2012 14:55:50 +0000 (15:55 +0100)
However, the code was not compiled with the -fPIC flag.

ppp/ppp.nm

index 8930a9278a07df7e75629851b65754607bf9bf85..f82be752cbeb001ff02e9b9cf618cdbc67ad5bae 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = ppp
 version    = 2.4.5
-release    = 2
+release    = 3
 
 groups     = System/Daemons
 url        = ftp://ftp.samba.org/pub/ppp/
@@ -30,6 +30,9 @@ build
                pam-devel
        end
 
+       # Explicitely add -fPIC to CFLAGS.
+       CFLAGS += -fPIC
+
        prepare_cmds
                sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \
                        -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
@@ -60,7 +63,6 @@ end
 
 packages
        package %{name}
-       end
 
        package %{name}-devel
                template DEVEL