mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-21 21:27:44 +01:00
gcc 4: fix math library fix for genautomata
* The build host's math library is needed, not the host's. Makes a difference when build host != host, e.g. when cross-compiling a native Haiku compiler on Linux. * Rename the variable math_library -> build_math_library for clarity.
This commit is contained in:
parent
dee1a38d2c
commit
eddee0bfd6
@ -3965,7 +3965,7 @@ $(genprogerr:%=build/gen%$(build_exeext)): $(BUILD_ERRORS)
|
||||
genprog = $(genprogerr) check checksum condmd
|
||||
|
||||
# These programs need libs over and above what they get from the above list.
|
||||
build/genautomata$(build_exeext) : BUILD_LIBS += @math_library@
|
||||
build/genautomata$(build_exeext) : BUILD_LIBS += @build_math_library@
|
||||
|
||||
# These programs are not linked with the MD reader.
|
||||
build/gengtype$(build_exeext) : build/gengtype-lex.o build/gengtype-parse.o \
|
||||
|
8
gcc/gcc/configure
vendored
8
gcc/gcc/configure
vendored
@ -599,7 +599,7 @@ ac_includes_default="\
|
||||
#endif"
|
||||
|
||||
ac_subst_vars='LTLIBOBJS
|
||||
math_library
|
||||
build_math_library
|
||||
LIBOBJS
|
||||
enable_plugin
|
||||
pluginlibs
|
||||
@ -8849,11 +8849,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
|
||||
# Configure -lm usage for host tools that need it
|
||||
math_library="-lm"
|
||||
case $host in
|
||||
build_math_library="-lm"
|
||||
case $build in
|
||||
*-*-haiku*)
|
||||
# no separate math library needed
|
||||
math_library=
|
||||
build_math_library=
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -1003,11 +1003,11 @@ AC_LANG_POP(C++)
|
||||
|
||||
|
||||
# Configure -lm usage for host tools that need it
|
||||
math_library="-lm"
|
||||
case $host in
|
||||
build_math_library="-lm"
|
||||
case $build in
|
||||
*-*-haiku*)
|
||||
# no separate math library needed
|
||||
math_library=
|
||||
build_math_library=
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user