Codebase list bam / f934c32
d/p/cross.patch: Avoid hardcoding pkg-config Nilesh Patra 3 years ago
2 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Description: Do not hardcode pkg-config, build the needed file with build arch compiler
1 Author: Nilesh Patra <nilesh@debian.org>
2 Last-Update: 2021-03-17
3 --- a/make_unix.sh
4 +++ b/make_unix.sh
5 @@ -25,7 +25,7 @@
6
7 # the actual compile
8 echo "compiling using $CC..." >&2
9 -$CC -Wall -pedantic $CFLAGS $CPPFLAGS $LDFLAGS src/tools/txt2c.c `pkg-config --cflags lua5.3` -o src/tools/txt2c
10 +$CC_FOR_BUILD -Wall -pedantic $CFLAGS $CPPFLAGS $LDFLAGS src/tools/txt2c.c `$PKG_CONFIG --cflags lua5.3` -o src/tools/txt2c
11 src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_clang.lua src/driver_cl.lua src/driver_solstudio.lua src/driver_xlc.lua > src/internal_base.h
12 -$CC -Wall -pedantic $CFLAGS $CPPFLAGS $LDFLAGS src/*.c src/lua/*.c -o bam `pkg-config --cflags --libs lua5.3` -lm -lpthread -ldl -rdynamic $*
13 +$CC -Wall -pedantic $CFLAGS $CPPFLAGS $LDFLAGS src/*.c src/lua/*.c -o bam `$PKG_CONFIG --cflags --libs lua5.3` -lm -lpthread -ldl -rdynamic $*
14
11 gendocs.patch
22 make_unix.patch
33 python3.patch
4 cross.patch