18056245 Update screen to ASLR + 64b
authorJiri Kukacka <jiri.kukacka@oracle.com>
Thu, 09 Jan 2014 11:08:15 -0800
changeset 1658 6fd28f9584ed
parent 1657 5612d6ef4c2b
child 1659 2ee68e9ab496
18056245 Update screen to ASLR + 64b
components/screen/Makefile
--- a/components/screen/Makefile	Thu Jan 09 05:51:38 2014 -0800
+++ b/components/screen/Makefile	Thu Jan 09 11:08:15 2014 -0800
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
 #
 include ../../make-rules/shared-macros.mk
 
@@ -41,17 +41,21 @@
 CONFIGURE_OPTIONS +=	--disable-socket-dir
 CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
+# We need to add CC_BITS or we get ld: fatal: wrong ELF class: ELFCLASS64
+COMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)"
 
 PROTOTERMINFODIR=$(PROTOUSRSHAREDIR)/lib/terminfo
 
 $(PROTOTERMINFODIR):
 	$(MKDIR) [email protected]
 
-$(INSTALL_32):	$(PROTOTERMINFODIR)
+$(INSTALL_64):	$(PROTOTERMINFODIR)
+
+ASLR_MODE = $(ASLR_ENABLE)
 
-build:		$(BUILD_32)
+build:		$(BUILD_64)
 
-install:	$(INSTALL_32)
+install:	$(INSTALL_64)
 
 test:		$(NO_TESTS)