make-rules/shared-macros.mk
changeset 79 2407cb00983e
parent 74 7e35801ce8b8
child 80 7f8350e3f91a
--- 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))