autofs: fix ldflags issue, missing debug info, duplicate opt flags.
authorChris Larson <clarson@kergoth.com>
Thu, 27 Aug 2009 07:09:18 +0000 (00:09 -0700)
committerChris Larson <clarson@mvista.com>
Thu, 27 Aug 2009 07:11:53 +0000 (00:11 -0700)
Signed-off-by: Chris Larson <clarson@kergoth.com>
recipes/autofs/autofs-4.1.4/Makefile.rules-cross.patch
recipes/autofs/autofs_4.1.4.bb

index d8b3692..dd54dc1 100644 (file)
@@ -6,15 +6,15 @@
  ifdef DEBUG
 -CFLAGS    = -O2 -g -DDEBUG
 -LDFLAGS   = -g
-+CFLAGS    += -O2 -g -DDEBUG
-+LDFLAGS   += -g
++CFLAGS    ?= -O2 -g -DDEBUG
++LDFLAGS   ?= -g
  STRIP     = :
  else
 -CFLAGS    = -O3 -fomit-frame-pointer -Wall
 -LDFLAGS   = -s
 -STRIP     = strip --strip-debug
-+CFLAGS    += -O3 -fomit-frame-pointer -Wall
-+LDFLAGS   += -s
++CFLAGS    ?= -O3 -fomit-frame-pointer -Wall
++LDFLAGS   ?= -s
 +STRIP     = ${TARGET_PREFIX}strip --strip-debug
  endif
  
index d9863ad..2f998ab 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Kernel based automounter for linux."
 SECTION = "base"
 LICENSE = "GPL"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/daemons/autofs/v4/autofs-${PV}.tar.bz2 \
            ${KERNELORG_MIRROR}/pub/linux/daemons/autofs/v4/autofs-4.1.4-misc-fixes.patch;patch=1 \
@@ -20,7 +20,9 @@ inherit autotools update-rc.d
 INITSCRIPT_NAME = "autofs"
 INITSCRIPT_PARAMS = "defaults"
 
-EXTRA_OEMAKE="TARGET_PREFIX=${TARGET_PREFIX}"
+# FIXME: modules/Makefile has crappy rules that don't obey LDFLAGS
+CFLAGS += "${LDFLAGS}"
+EXTRA_OEMAKE = "STRIP=/bin/true"
 PARALLEL_MAKE = ""
 
 do_configure_prepend () {