summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2012-10-23 21:55:19 +0000
committerRobert Mustacchi <rm@joyent.com>2012-10-23 21:55:19 +0000
commitfc09716df399a4ddc7bd0146f644595e3f608724 (patch)
tree9e3fb33b2dffbae4004c8dd0dd26b7f333ab51cf
parentbb04ae8a50029589b0b2df66bcb1136c1624d72a (diff)
downloadillumos-kvm-fc09716df399a4ddc7bd0146f644595e3f608724.tar.gz
OS-1655 kvm user portions should build with -zassert-deflib and -zguidance2012111520121101
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ee1269..9942ad7 100644
--- a/Makefile
+++ b/Makefile
@@ -143,7 +143,14 @@ LINKMOD_CFLAGS = \
-O \
-fpic
+USER_LDFLAGS = \
+ -Wl,-Bdirect \
+ -Wl,-zfatal-warnings \
+ -Wl,-zassert-deflib \
+ -Wl,-zguidance
+
DMOD_LDFLAGS = \
+ $(USER_LDFLAGS) \
-m64 \
-shared \
-nodefaultlibs \
@@ -161,11 +168,11 @@ DMOD_LIBS = \
-lc
LINKMOD_LDFLAGS = \
+ $(USER_LDFLAGS) \
-shared \
-nodefaultlibs \
-Wl,-zdefs \
-Wl,-ztext \
- -Wl,-Bdirect \
-Wl,-M$(KERNEL_SOURCE)/usr/src/cmd/devfsadm/mapfile-vers \
-Wl,-M$(KERNEL_SOURCE)/usr/src/common/mapfiles/common/map.pagealign \
-Wl,-M$(KERNEL_SOURCE)/usr/src/common/mapfiles/common/map.noexdata \