History

a libraries paths

* x86_64-tcc: use /usr/lib64,.. instead of /usr/lib,.. * don't set tcc_lddir="lib64" if cpu="x86" * put a definition of the CONFIG_LDDIR into config.h instead of the config.mak Otherwise a "lib" string may be used by default. This is a usual case when building a x86_64-tcc (there was no -DCONFIG_LDDIR building this binary). * suppress -Wdeprecated-declarations for gcc which complain on malloc hooks in bcheck.c if glibc is quite new.

seyko committed 11 years ago

Commit 7ed43411 parent 7ec39e21 file · +21 −7Browse files

Unified · Split

configure+21−7
@@ -237,15 +237,25 @@ else · 236 unmodified lines
237237 if test x"$execprefix" = x""; then
238238 execprefix="${prefix}"
239239 fi
240+ if test x"$tccdir" = x""; then
241+ tccdir="tcc"
242+ fi
240243 if test x"$libdir" = x""; then
241− libdir="${execprefix}/lib"
244+ libdir="${execprefix}/lib"
245+ if test -n "${tccdir}"; then
246+ tccdir="${libdir}/${tccdir}"
247+ else
248+ tccdir="${libdir}"
249+ fi
250+ if test "$cpu" = "x86-64"; then
251+ libdir="${execprefix}/lib64"
252+ fi
253+ else
254+ tccdir="${libdir}/${tccdir}"
242255 fi
243256 if test x"$bindir" = x""; then
244257 bindir="${execprefix}/bin"
245258 fi
246− if test x"$tccdir" = x""; then
247− tccdir="tcc"
248− fi
249259 if test x"$docdir" = x""; then
250260 docdir="${sharedir}/doc/${tccdir}"
251261 fi
@@ -255,7 +265,6 @@ else · 3 unmodified lines
255265 if test x"$infodir" = x""; then
256266 infodir="${sharedir}/info"
257267 fi
258− tccdir="${libdir}/${tccdir}"
259268 fi # mingw32
260269
261270 if test x"$includedir" = x""; then
@@ -325,7 +334,7 @@ if test -z "$cross_prefix" ; then · 63 unmodified lines
325334 if test -f "/usr/lib/$triplet/crti.o" ; then
326335 tcc_lddir="lib"
327336 multiarch_triplet="$triplet"
328− elif test -f "/usr/lib64/crti.o" ; then
337+ elif test "$cpu" != "x86" -a -f "/usr/lib64/crti.o" ; then
329338 tcc_lddir="lib64"
330339 fi
331340
@@ -363,6 +372,11 @@ else · 31 unmodified lines
363372 esac
364373 fi
365374
375+# a final configuration tuning
376+W_PRESENT="$($cc -v --help 2>&1 | grep deprecated-declarations)"
377+if test -n "$W_PRESENT"; then cc="$cc -Wno-deprecated-declarations"; fi
378+if test -z "$tcc_lddir" -a "$cpu" = "x86-64"; then tcc_lddir="lib64"; fi
379+
366380 echo "Binary directory $bindir"
367381 echo "TinyCC directory $tccdir"
368382 echo "Library directory $libdir"
@@ -424,11 +438,11 @@ echo "/* Automatically generated by configure - do not modify */" > $TMPH · 55 unmodified lines
424438
425439 print_inc CONFIG_SYSROOT "$sysroot"
426440 print_inc CONFIG_TCCDIR "$tccdir"
441+print_inc CONFIG_LDDIR "$tcc_lddir"
427442 print_mak CONFIG_TCC_SYSINCLUDEPATHS "$tcc_sysincludepaths"
428443 print_mak CONFIG_TCC_LIBPATHS "$tcc_libpaths"
429444 print_mak CONFIG_TCC_CRTPREFIX "$tcc_crtprefix"
430445 print_mak CONFIG_TCC_ELFINTERP "$tcc_elfinterp"
431−print_mak CONFIG_LDDIR "$tcc_lddir"
432446 print_mak CONFIG_MULTIARCHDIR "$multiarch_triplet"
433447
434448 echo "#define GCC_MAJOR $gcc_major" >> $TMPH

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t