16578947 unrar should be 64-bit
authorRich Burridge <rich.burridge@oracle.com>
Fri, 05 Apr 2013 05:33:50 -0700
changeset 1249 57ecc19cd86f
parent 1248 8b78906f3eb9
child 1250 c7a246ecccbb
16578947 unrar should be 64-bit
components/unrar/Makefile
--- a/components/unrar/Makefile	Wed Apr 03 15:47:16 2013 -0700
+++ b/components/unrar/Makefile	Fri Apr 05 05:33:50 2013 -0700
@@ -42,16 +42,20 @@
 include ../../make-rules/ips.mk
 
 PKG_PROTO_DIRS = $(MANGLED_DIR)
-PKG_PROTO_DIRS += $(BUILD_DIR_32)
+PKG_PROTO_DIRS += $(BUILD_DIR_64)
 PKG_PROTO_DIRS += $(COMPONENT_DIR)
 
 PATCH_LEVEL =	0
 
 
+# Needed by .../unrar/os.hpp to correctly define platform endianness.
+CXXFLAGS.i386 = -DLITTLE_ENDIAN
+CXXFLAGS.sparc = -DBIG_ENDIAN
+CXXFLAGS += $(CXXFLAGS.$(MACH))
 CXXFLAGS += "-erroff=wvarhidemem"
 COMPONENT_BUILD_ENV += CXX="$(CXX)"
 COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
-COMPONENT_BUILD_ENV += LDFLAGS="$(studio_NORUNPATH)"
+COMPONENT_BUILD_ENV += LDFLAGS="$(studio_NORUNPATH) -m64"
 COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
 
 COMPONENT_BUILD_ARGS += -f makefile.unix
@@ -60,9 +64,9 @@
 ASLR_MODE = $(ASLR_ENABLE)
 
 # common targets
-build:		$(BUILD_32)
+build:		$(BUILD_64)
 
-install:	$(BUILD_32)
+install:	$(BUILD_64)
 
 test:		$(NO_TESTS)