Bug 701689

Summary: build: Allow settings CPPFLAGS used for auxiliary tools when cross-compiling
Product: Ghostscript Reporter: Marvin Schmidt <marvin_schmidt>
Component: Build ProcessAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: master   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: introduce CPPFLAGSAUX

Description Marvin Schmidt 2019-10-13 15:39:07 UTC
Created attachment 18258 [details]
introduce CPPFLAGSAUX

Otherwise CPPFLAGS will be used as-is, which are the CPPFLAGS for the host we're building for:

configure:3157: checking whether the C compiler works
configure:3179: x86_64-pc-linux-gnu-cc -march=native -O2 -pipe -march=armv7-a -mfloat-abi=hard -mfpu=vfpv4 -pipe -O2  conftest.c  >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-mfloat-abi=hard'
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-mfpu=vfpv4'
configure:3183: $? = 1
configure:3221: result: no
Comment 1 Chris Liddell (chrisl) 2019-11-06 11:18:52 UTC
I'm in the middle of various change to the configure script right now, so the patch doesn't directly apply. I've done it manually, but if you have a moment, I would appreciate it if you could cast a quick eye over what I've done to make sure I didn't mess up:

http://git.ghostscript.com/?p=user/chrisl/ghostpdl.git;a=commitdiff;h=e220822f7093
Comment 2 Chris Liddell (chrisl) 2019-11-22 12:15:33 UTC
Applied (hopefully all okay):

https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=317c0154a814


Thanks!