summaryrefslogtreecommitdiff
path: root/package/lsof/lsof-override-cflags.patch
diff options
context:
space:
mode:
authorAndy Gibbs <andyg1001@hotmail.co.uk>2010-11-03 15:09:24 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-11-04 17:15:18 +0100
commit44b170e104a6acc527fbcaee19ce63e8e51ea279 (patch)
tree56f8c325c286dc01433d7588c02336c5cc7b56cf /package/lsof/lsof-override-cflags.patch
parent382ade52a5275c1e84882afc46f2aa2e8259bc19 (diff)
lsof: stop overriding CFLAGS in build
Closes #2767 lsof compile breaks if CFLAGS overridden in 'make' command line which is the case since buildroot-2010.08. lsof has a partial fix for this already in the form of the 'LSOF_CFLAGS_OVERRIDE=1' configure option; however this only fixes the problem in the generation of the Makefile for liblsof. This patch does two things: it extends the 'LSOF_CFLAGS_OVERRIDE=1' configure option to also cover the main Makefile; it also patches lsof.mk to make use of the LSOF_CFLAGS_OVERRIDE option. Signed-off-by: Andy Gibbs <andyg1001@hotmail.co.uk> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/lsof/lsof-override-cflags.patch')
-rw-r--r--package/lsof/lsof-override-cflags.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/lsof/lsof-override-cflags.patch b/package/lsof/lsof-override-cflags.patch
new file mode 100644
index 000000000..fcb929262
--- /dev/null
+++ b/package/lsof/lsof-override-cflags.patch
@@ -0,0 +1,13 @@
+--- lsof_4.81/lsof_4.81_src/Configure 2008-10-21 18:21:45.000000000 +0200
++++ lsof_4.81/lsof_4.81_src/Configure 2010-11-03 14:00:00.000000000 +0100
+@@ -5206,6 +5206,10 @@
+ cp $LSOF_MKFC ${LSOF_LIB}/$LSOF_LIBMKF
+ fi # }
+ cat ./dialects/$LSOF_DIALECT_DIR/$LSOF_REST >> $LSOF_MKFC
++if test "X$LSOF_CFLAGS_OVERRIDE" != "X" # {
++then
++ sed -i -e 's/^CFLAGS=/override CFLAGS=/' $LSOF_MKFC
++fi # }
+ if test "X$LSOF_LIB_NO" = "X" # {
+ then
+