Skip to content

Commit 0458425

Browse files
committed
Hack to include src/inlined-icons.c when running configure
1 parent 5811c18 commit 0458425

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configure

+10
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,23 @@ rm -f src/conftest.c src/method-link.c
222222
cfiles="src/method-link.c"
223223
ofiles="$BUILDTMP/method-link.o"
224224

225+
# HACK: create an empty inlined-icons.c so it is included in the source file list by configure
226+
if test "$cfg_with_gui" == "yes"; then
227+
touch "src/inlined-icons.c"
228+
fi
229+
225230
for cfile in src/*.c; do
226231
cfile_prefix=`echo $cfile | sed -e 's/\.c//'`
227232
cfiles="$cfiles $cfile"
228233
ofiles="$ofiles $BUILDTMP/$(basename $cfile_prefix.o)"
229234
echo -n " $cfile_prefix"
230235
done
231236

237+
# HACK: delete inlined-icons.c again so it is properly generated later
238+
if test "$cfg_with_gui" == "yes"; then
239+
rm "src/inlined-icons.c"
240+
fi
241+
232242
echo
233243
echo -e "\nCFG_CFILES = $cfiles" >> Makefile.config
234244
echo "CFG_OFILES = $ofiles" >> Makefile.config

0 commit comments

Comments
 (0)