7018314 userland patch mechanism should make patchlevel override easier
authorNorm Jacobs <Norm.Jacobs@Oracle.COM>
Wed, 09 Feb 2011 11:16:52 -0800
changeset 79 2407cb00983e
parent 78 d47cf5f02201
child 80 7f8350e3f91a
7018314 userland patch mechanism should make patchlevel override easier 7018320 userland LD_OPTIONS needs quoting work
make-rules/shared-macros.mk
--- a/make-rules/shared-macros.mk	Wed Feb 09 02:03:32 2011 -0800
+++ b/make-rules/shared-macros.mk	Wed Feb 09 11:16:52 2011 -0800
@@ -169,7 +169,8 @@
 
 GMAKE =		/usr/gnu/bin/make
 GPATCH =	/usr/gnu/bin/patch
-GPATCH_FLAGS =	-p1 -b
+PATCH_LEVEL =	1
+GPATCH_FLAGS =	-p$(PATCH_LEVEL) -b
 
 PKGSEND =	/usr/bin/pkgsend
 PKGLINT =	/usr/bin/pkglint
@@ -256,15 +257,15 @@
 
 # build with a non-executable stack by default.
 # override this if necessary
-LD_MAP_NOEXSTK="-M /usr/lib/ld/map.noexstk"
+LD_MAP_NOEXSTK=-M /usr/lib/ld/map.noexstk
 LD_OPTIONS+= $(LD_MAP_NOEXSTK)
 
 # Environment variables and arguments passed into the build and install
 # environment(s).  These are the initial settings.
 COMPONENT_BUILD_ENV= \
-    LD_OPTIONS=$(LD_OPTIONS)
+    LD_OPTIONS="$(LD_OPTIONS)"
 COMPONENT_INSTALL_ENV= \
-    LD_OPTIONS=$(LD_OPTIONS)
+    LD_OPTIONS="$(LD_OPTIONS)"
 
 # Add any bit-specific settings
 COMPONENT_BUILD_ENV += $(COMPONENT_BUILD_ENV.$(BITS))