summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2016-01-25 10:59:23 +0000
committerChris Liddell <chris.liddell@artifex.com>2016-10-21 15:35:19 +0100
commitc3c4bf022a631be939ebb4bf6f59e41514cb1e48 (patch)
tree357d89915f8284818673570e58a200846dab0c11 /Makefile.in
parent0845a1c90f7a22a5b50fddbf7809d985b98290cd (diff)
downloadghostpdl-c3c4bf022a631be939ebb4bf6f59e41514cb1e48.tar.gz
Bug 696508: improve configure cross compile support
This is a squashing of the commits on the branch: CCAUX-configure This allows CCAUX and related settings to be set on the configure command line, or in the environment. Also, using configure to guess at creating an arch.h file which gets used rather than genarch generating one. A couple of things in that file will not be as accurate as using genarch, but those are rare, and almost certainly for outdated systems (such as whether floats use IEEE representation). Better documentation to follow, but as an example, building for Android would work with: ./configure --host=arm-linux-gnu --build=x86_64-linux-gnu \ CC=/opt/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc \ CFLAGS="--sysroot=/home/cliddell/bin/android-ndk-r10e/platforms/android-18/arch-arm -MMD -MP -MF -fpic \ -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp \ -mfpu=vfpv3-d16 -mthumb -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -Wa,--noexecstack" LDFLAGS=" \ --sysroot=/home/cliddell/bin/android-ndk-r10e/platforms/android-18/arch-arm -MMD -MP -MF -fpic -ffunction-sections \ -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb \ -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -Wa,--noexecstack" CCAUX=gcc CFLAGSAUX=" "
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in23
1 files changed, 16 insertions, 7 deletions
diff --git a/Makefile.in b/Makefile.in
index 50b4ff00c..99be52720 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -80,6 +80,7 @@ INSTALL_DATA = $(INSTALL) -m 644
INSTALL_SHARED = @INSTALL_SHARED@
prefix = @prefix@
+datarootdir = @datarootdir@
exec_prefix = @exec_prefix@
bindir = @bindir@
scriptdir = $(bindir)
@@ -89,7 +90,6 @@ mandir = @mandir@
man1ext = 1
man1dir = $(mandir)/man$(man1ext)
datadir = @datadir@
-datarootdir = @datarootdir@
# The following must be substituted using @datadir@ and @libdir@
# to avoid adding RPM generation paths (CUPS STR #1112)
@@ -138,6 +138,7 @@ TARGET_ARCH_FILE=@ARCH_CONF_HEADER@
# are set.
GENOPT=
+GENOPTAUX=
# Choose capability options.
@@ -372,7 +373,7 @@ STRIP_XE_OPTS=
# Define the name of the C compiler (target and host (AUX))
CC=@CC@
-CCAUX=@CC@
+CCAUX=@CCAUX@
# Define the name of the linker for the final link step.
# Normally this is the same as the C compiler.
@@ -382,6 +383,7 @@ CCAUXLD=$(CCAUX)
# Define the default gcc flags.
GCFLAGS=@CPPFLAGS@ @GCFLAGS@ @CFLAGS@
+GCFLAGSAUX=@GCFLAGSAUX@
# Define the added flags for standard, debugging, profiling
# and shared object builds.
@@ -391,6 +393,10 @@ CFLAGS_DEBUG=@DBG_CFLAGS@
CFLAGS_PROFILE=-pg @OPT_CFLAGS@
CFLAGS_SO=@DYNAMIC_CFLAGS@
+CFLAGSAUX_STANDARD=@CFLAGSAUX_STANDARD@
+CFLAGSAUX_DEBUG=@CFLAGSAUX_DEBUG@
+CFLAGSAUX_PROFILE=-pg @CFLAGSAUX_STANDARD@
+
# Define the extra flags added for address sanitizer builds
CFLAGS_SANITIZE=@CFLAGS_SANITIZE@
@@ -422,6 +428,7 @@ DBUS_LIBS=@DBUS_LIBS@
ACDEFS=@DEFS@
CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(AC_CFLAGS) $(XCFLAGS)
+CFLAGSAUX=$(CFLAGSAUX_STANDARD) $(GCFLAGSAUX) $(XCFLAGSAUX)
# Define platform flags for ld.
# SunOS 4.n may need -Bstatic.
@@ -435,6 +442,8 @@ AC_LDFLAGS=@X_LDFLAGS@
LDFLAGS=@LDFLAGS@ $(AC_LDFLAGS) $(XLDFLAGS)
+LDFLAGSAUX=@LDFLAGSAUX@
+
GS_LDFLAGS=$(LDFLAGS)
PCL_LDFLAGS=$(LDFLAGS)
XPS_LDFLAGS=$(LDFLAGS)
@@ -451,7 +460,7 @@ XPS_LDFLAGS_SO=@XPS_DYNAMIC_LDFLAGS@
# (Libraries required by individual drivers are handled automatically.)
EXTRALIBS=$(XTRALIBS) @LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@ @JPX_AUTOCONF_LIBS@
-AUXEXTRALIBS=$(XTRALIBS) @LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@ @JPX_AUTOCONF_LIBS@ @AUX_SHARED_ZLIB@
+AUXEXTRALIBS=@AUXEXTRALIBS@
# Define the standard libraries to search at the end of linking.
# Most platforms require -lpthread for the POSIX threads library;
@@ -536,9 +545,6 @@ FEATURE_DEVS=$(GLD)pipe.dev $(GLD)gsnogc.dev $(GLD)htxlib.dev $(GLD)psl3lib.dev
$(GLD)psf2lib.dev $(GLD)lzwd.dev $(GLD)sicclib.dev \
$(GLD)sjbig2.dev $(GLD)sjpx.dev $(GLD)ramfs.dev
-
-
-
#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev
#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(GLD)pipe.dev
# The following is strictly for testing.
@@ -654,8 +660,11 @@ AK=
CCFLAGS=$(GENOPT) $(CAPOPT) $(CFLAGS)
CC_=$(CC) $(CCFLAGS)
-CCAUX_=$(CCAUX) $(CFLAGS)
CC_LEAF=$(CC_)
+
+CCFLAGSAUX=$(GENOPTAUX) $(CAPOPTAUX) $(CFLAGSAUX)
+CCAUX_=$(CCAUX) $(CCFLAGSAUX)
+
# note gcc can't use -fomit-frame-pointer with -pg.
CC_LEAF_PG=$(CC_)
# These are the specific warnings we have to turn off to compile those