components/getopt/Makefile
changeset 5843 9cefd39b551b
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
--- a/components/getopt/Makefile	Mon Apr 25 08:26:37 2016 -0700
+++ b/components/getopt/Makefile	Mon Apr 25 12:33:41 2016 -0700
@@ -22,6 +22,7 @@
 #
 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
 #
+BUILD_BITS= 64
 include ../../make-rules/shared-macros.mk
 
 COMPONENT_NAME=		getopt
@@ -39,6 +40,7 @@
 include $(WS_MAKE_RULES)/common.mk
 
 # getopt doesn't use configure, override the hard-wired values in the Makefile.
+LDFLAGS += $(CC_BITS)
 COMPONENT_BUILD_ARGS+=	CC="$(CC)"
 COMPONENT_BUILD_ARGS+=	CFLAGS="$(CFLAGS)"
 COMPONENT_BUILD_ARGS+=	LDFLAGS="$(LDFLAGS)"