Bug 701689 - build: Allow settings CPPFLAGS used for auxiliary tools when cross-compiling
Summary: build: Allow settings CPPFLAGS used for auxiliary tools when cross-compiling
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-13 15:39 UTC by Marvin Schmidt
Modified: 2019-11-22 12:15 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
introduce CPPFLAGSAUX (2.40 KB, patch)
2019-10-13 15:39 UTC, Marvin Schmidt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!