On Tue, 23 Mar 2021, Dan Mahoney (Gushi) wrote:
Is there a "standard" way to do this? Google kind of fails for this.
I see that Gavin Smith already answered the question you asked, but
GraphicsMagick took a different tact. The configure options used are
interesting but don't provide the answers for what the configure
script ended up using for the build. And so GraphicsMagick is
providing additional data like this:
Configured using the command:
../GraphicsMagick/configure 'PSDelegate=/bin/true' 'CC=gcc-10'
'CXX=g++-10' 'CFLAGS=-march=native -O2 -frename-registers -g -Wall
-Winline -W -Wformat-security -Wpointer-arith -Wdisabled-optimization
-Wmissing-noreturn -Wno-unknown-pragmas -Wvla' 'CXXFLAGS=-march=native
-O2 -g -Wall -Winline -W -Wextra -Wno-unknown-pragmas'
'LDFLAGS=-L/usr/local/lib -Wl,-rpath,/usr/local/lib'
'--with-quantum-depth=16' '--disable-shared' '--enable-static'
'--enable-openmp-slow' '--enable-silent-rules' '--without-xml'
Final Build Parameters:
CC = gcc-10
CFLAGS = -fopenmp -march=native -O2 -frename-registers -g -Wall
-Winline -W -Wformat-security -Wpointer-arith -Wdisabled-optimization
-Wmissing-noreturn -Wno-unknown-pragmas -Wvla -Wall -pthread
CPPFLAGS = -I/usr/include/freetype2
CXX = g++-10
CXXFLAGS = -march=native -O2 -g -Wall -Winline -W -Wextra
-Wno-unknown-pragmas -pthread
LDFLAGS = -L/usr/local/lib -Wl,-rpath,/usr/local/lib
LIBS = -ljbig -lwebp -lwebpmux -llcms2 -ltiff -lfreetype -ljpeg
-lpng16 -lwmflite -lX11 -llzma -lz -lzstd -lm -lpthread
From the above, it can be seen what values were determined for
standard Autoconf/Automake build variables (e.g. AC_DEFINE_UNQUOTED).
This is all done by using Autoconf defines suitable for including in
source code.
Bob
--
Bob Friesenhahn
bfriesen@xxxxxxxxxxxxxxxxxxx, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt