]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
openl2tp: Fix build by removing -Werror and fixing installation of plugins.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Mar 2012 09:53:53 +0000 (10:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Mar 2012 09:53:53 +0000 (10:53 +0100)
openl2tp/openl2tp.nm

index 24003493244b17e256a56c737bca9818d9e5025e..354edb2f476ca539039093722eeb9f046daa6cf5 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = openl2tp
 version    = 1.7
-release    = 1
+release    = 2
 
 groups     = Networking/PPP
 url        = http://www.openl2tp.org/
@@ -36,10 +36,13 @@ build
 
        prepare_cmds
                sed -e "s/-lfl/&_pic/g" -i Makefile
+
+               # Remove -Werror from all makefiles.
+               find . -name Makefile | xargs sed -i -e "s/-Werror//g"
        end
 
        build
-               make OPT_CFLAGS="%{CFLAGS}" \
+               make OPT_CFLAGS="%{CFLAGS}" ARCH="%{DISTRO_ARCH}" \
                        KERNEL_SRCDIR="/usr" PPPD_VERSION="2.4.5"
        end
 
@@ -49,7 +52,7 @@ build
 #endef
 
        install
-               make install DESTDIR=%{BUILDROOT} \
+               make install DESTDIR=%{BUILDROOT} ARCH="%{DISTRO_ARCH}" \
                        KERNEL_SRCDIR="/usr" PPPD_VERSION="2.4.5"
        end
 end