I have also noticed that `--extra-flags=` it's actually problematic, how it
behaves that is.
The name indicates that we are supposedly extending the existing cflags, but if
we first run `./configure -h`, we can see that `--extra-flags` default to
`[-Wall -O2]`, which for some reason when we insert our own flag(s) of choice,
it overwrites / overrides the default ones and retains only our own extra cflag!
stefanos@debian:tinycc [mob]$ make distclean && make clean && ./configure
--extra-cflags='-std=gnu99' && make Perhaps you want ./configure
--config-musl Binary directory /usr/local/bin
TinyCC directory /usr/local/lib/tcc
Library directory /usr/local/lib
Include directory /usr/local/include
Manual directory /usr/local/share/man
Info directory /usr/local/share/info
Doc directory /usr/local/share/doc
Source path /home/stefanos/programming/studyingCode/tinycc
Build OS Linux x86_64
C compiler gcc (15.2)
Target OS Linux
CPU x86_64
Triplet x86_64-linux-gnu
Creating config.mak and config.h
gcc -o tcc.o -c tcc.c -I. -DONE_SOURCE=0 -DTCC_GITHASH="\"2025-11-23
mob@2916047\"" -std=gnu99 -Wdeclaration-after-statement -Wno-unused-result
gcc -o libtcc.o -c libtcc.c -I. -DONE_SOURCE=0 -std=gnu99
-Wdeclaration-after-statement -Wno-unused-result gcc -DC2STR conftest.c -o
c2str.exe ./c2str.exe include/tccdefs.h tccdefs_.h gcc -o tccpp.o -c
tccpp.c -I. -std=gnu99 -Wdeclaration-after-statement -Wno-unused-result gcc
-o tccgen.o -c tccgen.c -I. -std=gnu99 -Wdeclaration-after-statement
-Wno-unused-result gcc -o tccdbg.o -c tccdbg.c -I. -std=gnu99
-Wdeclaration-after-statement -Wno-unused-result gcc -o tccelf.o -c
tccelf.c -I. -std=gnu99 -Wdeclaration-after-statement -Wno-unused-result
gcc -o tccasm.o -c tccasm.c -I. -std=gnu99 -Wdeclaration-after-statement
-Wno-unused-result gcc -o tccrun.o -c tccrun.c -I. -std=gnu99
-Wdeclaration-after-statement -Wno-unused-result gcc -o x86_64-gen.o -c
x86_64-gen.c -I. -std=gnu99 -Wdeclaration-after-statement
-Wno-unused-result gcc -o x86_64-link.o -c x86_64-link.c -I. -std=gnu99
-Wdeclaration-after-statement -Wno-unused-result gcc -o i386-asm.o -c
i386-asm.c -I. -std=gnu99 -Wdeclaration-after-statement -Wno-unused-result
ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccdbg.o tccelf.o tccasm.o
tccrun.o x86_64-gen.o x86_64-link.o i386-asm.o gcc -o tcc tcc.o libtcc.a
-lm -ldl -lpthread make[1]: Entering directory
'/home/stefanos/programming/studyingCode/tinycc/lib' ../tcc -c libtcc1.c -o
libtcc1.o -B.. -I.. ../tcc -c alloca.S -o alloca.o -B.. -I.. ../tcc -c
alloca-bt.S -o alloca-bt.o -B.. -I.. ../tcc -c stdatomic.c -o stdatomic.o
-B.. -I.. ../tcc -c atomic.S -o atomic.o -B.. -I.. ../tcc -c builtin.c -o
builtin.o -B.. -I.. ../tcc -c tcov.c -o tcov.o -B.. -I.. ../tcc -c
va_list.c -o va_list.o -B.. -I.. ../tcc -c dsohandle.c -o dsohandle.o -B..
-I.. ../tcc -ar rcs ../libtcc1.a libtcc1.o alloca.o alloca-bt.o stdatomic.o
atomic.o builtin.o tcov.o va_list.o dsohandle.o ../tcc -c runmain.c -o
../runmain.o -B.. -I.. ../tcc -c bt-exe.c -o ../bt-exe.o -B.. -I.. ../tcc
-c bt-log.c -o ../bt-log.o -B.. -I.. ../tcc -c bcheck.c -o ../bcheck.o -B..
-I.. -bt make[1]: Leaving directory
'/home/stefanos/programming/studyingCode/tinycc/lib' perl ./texi2pod.pl
tcc-doc.texi tcc-doc.pod pod2man --section=1 --center="Tiny C Compiler"
--release="0.9.28rc" tcc-doc.pod >tcc.1 makeinfo --no-split --html
--number-sections -o tcc-doc.html tcc-doc.texi tcc-doc.texi:25: warning: no
htmlxref.cnf entry found for `dir' makeinfo tcc-doc.texi || true
This is not how it should supposed to behave, in my humble opinion!
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel