mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-29 01:33:46 +00:00
Use the same compiler passed to cmake for libpqtypes.
Don't bother the user with silly messages, if the compiler doesn't work then it just won't work. But at least try, u damn script!
This commit is contained in:
parent
0f308455ca
commit
354c760a07
2 changed files with 1 additions and 6 deletions
|
@ -13,7 +13,7 @@ function (import_libpqtypes_project PostgreSQL_INCLUDE_DIRS RELEASE_C_FLAGS)
|
||||||
DOWNLOAD_COMMAND ""
|
DOWNLOAD_COMMAND ""
|
||||||
SOURCE_DIR ${libpqtypes_base_path}
|
SOURCE_DIR ${libpqtypes_base_path}
|
||||||
PREFIX ${libpqtypes_prefix}
|
PREFIX ${libpqtypes_prefix}
|
||||||
CONFIGURE_COMMAND ${libpqtypes_base_path}/configure --prefix ${libpqtypes_prefix} "CPPFLAGS=${libpqtypes_inc_dirs}"
|
CONFIGURE_COMMAND ${libpqtypes_base_path}/configure --prefix ${libpqtypes_prefix} "CC=${CMAKE_C_COMPILER}" "CPPFLAGS=${libpqtypes_inc_dirs}"
|
||||||
"CFLAGS=$<$<CONFIG:Release>:${RELEASE_C_FLAGS}>" --quiet
|
"CFLAGS=$<$<CONFIG:Release>:${RELEASE_C_FLAGS}>" --quiet
|
||||||
BUILD_COMMAND ${MAKE}
|
BUILD_COMMAND ${MAKE}
|
||||||
BUILD_IN_SOURCE 0
|
BUILD_IN_SOURCE 0
|
||||||
|
|
5
lib/libpqtypes-1.5.1/configure
vendored
5
lib/libpqtypes-1.5.1/configure
vendored
|
@ -19805,7 +19805,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS -Isrc"
|
CPPFLAGS="$CPPFLAGS -Isrc"
|
||||||
if test "$CC" = "gcc" ; then
|
|
||||||
# always want reentrant funcs, not just thread-safe mode. -s
|
# always want reentrant funcs, not just thread-safe mode. -s
|
||||||
CFLAGS="$CFLAGS -O3 -Wall -Wpointer-arith -D_GNU_SOURCE -D_REENTRANT -fsigned-char"
|
CFLAGS="$CFLAGS -O3 -Wall -Wpointer-arith -D_GNU_SOURCE -D_REENTRANT -fsigned-char"
|
||||||
|
|
||||||
|
@ -20647,10 +20646,6 @@ case ".$ac_cv_cflags_gcc_option__funit_at_a_time" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
|
||||||
as_fn_error $? "Using $CC instead of gcc, currently not supported" "$LINENO" 5
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Each case has an example of what target_os contains
|
# Each case has an example of what target_os contains
|
||||||
case ${target_os} in
|
case ${target_os} in
|
||||||
# solaris
|
# solaris
|
||||||
|
|
Loading…
Reference in a new issue