From f5d8aeebaf336c979d256c2fff83d1c1784b1495 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 11 Mar 2012 10:53:53 +0100 Subject: [PATCH] openl2tp: Fix build by removing -Werror and fixing installation of plugins. --- openl2tp/openl2tp.nm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openl2tp/openl2tp.nm b/openl2tp/openl2tp.nm index 240034932..354edb2f4 100644 --- a/openl2tp/openl2tp.nm +++ b/openl2tp/openl2tp.nm @@ -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 -- 2.39.2