components/squid/Makefile
changeset 1624 6a885a6e48cb
parent 1605 7fc7910b6d94
child 1645 ff50a80c552a
--- a/components/squid/Makefile	Tue Jan 07 09:46:44 2014 -0800
+++ b/components/squid/Makefile	Tue Jan 07 11:41:43 2014 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2011, 2013, 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
@@ -47,9 +47,16 @@
 COMPILER =      gcc3
 endif
 
+CXX += $(CC_BITS)
+
 CFLAGS += -I/usr/include/kerberosv5
 CFLAGS += $(CPP_LARGEFILES)
 
+CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
+CONFIGURE_LIBDIR.64 =	$(CONFIGURE_PREFIX)/lib
+CONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
+CONFIGURE_OPTIONS.64 += LIBS="-m64"
+
 # Squid has own prefix
 CONFIGURE_PREFIX =	/usr/squid
 
@@ -59,6 +66,7 @@
 CONFIGURE_OPTIONS += --sharedstatedir=/var/squid
 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
+CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin
 CONFIGURE_OPTIONS += --enable-arp-acl
 CONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
 CONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
@@ -95,10 +103,12 @@
                 (cd $(COMPONENT_DIR) ; \
                  $(CP) files/squid.conf.default $(@D)/src)
 
+ASLR_MODE = $(ASLR_ENABLE)
+
 # common targets
-build:		$(BUILD_32) 
+build:		$(BUILD_64)
 
-install:	$(INSTALL_32) 
+install:	$(INSTALL_64)
 
 # configure says it needs cppunit to test with.
 # After some work I can get cppunit to build but it quickly