1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Description: Honor compiler and linker flags in the headers test
Forwarded: https://github.com/fedora-modularity/libmodulemd/pull/632
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2026-01-05
--- a/modulemd/tests/test-import-headers.sh
+++ b/modulemd/tests/test-import-headers.sh
@@ -32,26 +32,38 @@
echo "gcc \`pkg-config --cflags gobject-2.0\` \
\`pkg-config --cflags yaml-0.1\` \
+ ${CPPFLAGS} \
+ ${CFLAGS} \
+ ${LDFLAGS} \
-I `dirname $arg` \
-o $header.out \
$header.c"
gcc `pkg-config --cflags gobject-2.0` \
`pkg-config --cflags yaml-0.1` \
+ ${CPPFLAGS} \
+ ${CFLAGS} \
+ ${LDFLAGS} \
-I `dirname $arg` \
-o $header.out \
$header.c
echo "g++ \`pkg-config --cflags gobject-2.0\` \
\`pkg-config --cflags yaml-0.1\` \
+ ${CPPFLAGS} \
+ ${CXXFLAGS} \
+ ${LDFLAGS} \
-I `dirname $arg` \
-o $header.out \
$header.c"
g++ `pkg-config --cflags gobject-2.0` \
`pkg-config --cflags yaml-0.1` \
+ ${CPPFLAGS} \
+ ${CXXFLAGS} \
+ ${LDFLAGS} \
-I `dirname $arg` \
-o $header.out \
$header.c
done
popd
-rm -Rf $tempdir
\ No newline at end of file
+rm -Rf $tempdir
|