1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Pass CFLAGS to configure scripts using CONFIGURE_ENV.

This commit is contained in:
Archie Cobbs 2002-08-19 05:36:18 +00:00
parent 5189413ce3
commit 9baaf1dfa2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64649
3 changed files with 2 additions and 20 deletions

View File

@ -28,6 +28,7 @@ LIBTOOLFILES= ${SABLEVMDIR}/configure ${NATIVEDIR}/configure
USE_GMAKE= yes
INSTALLS_SHLIB= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
CONFIGURE_ENV= CFLAGS="-D_P1003_1B_VISIBLE -pthread -I${PREFIX}/include -L${PREFIX}/lib"
# Uncomment to force gnome dependency
#USE_GNOMELIBS= yes

View File

@ -1,16 +1,6 @@
diff -ur work.orig/sablevm-1.0.3/configure work/sablevm-1.0.3/configure
--- work.orig/sablevm-1.0.3/configure Wed Aug 14 22:34:00 2002
+++ work/sablevm-1.0.3/configure Sat Aug 17 21:14:52 2002
@@ -7747,6 +7747,9 @@
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+CFLAGS="${CFLAGS} -D_P1003_1B_VISIBLE -pthread -I${prefix}/include -L${prefix}/lib"
+
echo "$as_me:$LINENO: checking for ffi_prep_cif in -lffi" >&5
echo $ECHO_N "checking for ffi_prep_cif in -lffi... $ECHO_C" >&6
if test "${ac_cv_lib_ffi_ffi_prep_cif+set}" = set; then
@@ -7989,67 +7992,6 @@
echo -n
else

View File

@ -1,16 +1,7 @@
diff -ur work.orig/sablevm-1.0.3/configure.ac work/sablevm-1.0.3/configure.ac
--- work.orig/sablevm-1.0.3/configure.ac Wed Aug 14 22:29:54 2002
+++ work/sablevm-1.0.3/configure.ac Sat Aug 17 21:14:51 2002
@@ -114,12 +114,15 @@
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL
+dnl Required FreeBSD compile flags
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+CFLAGS="${CFLAGS} -D_P1003_1B_VISIBLE -pthread -I${prefix}/include -L${prefix}/lib"
+
dnl Checks for libraries.
AC_CHECK_LIB(ffi,ffi_prep_cif,echo -n,echo ***ERROR: libffi is missing; exit 1)
@@ -119,7 +119,6 @@
AC_CHECK_LIB(ltdl,lt_dlinit,echo -n,echo ***ERROR: libltdl is missing; exit 1)
AC_CHECK_LIB(m,fmod,echo -n,echo ***ERROR: libm is missing; exit 1)
AC_CHECK_LIB(popt,poptGetContext,echo -n,echo ***ERROR: libpopt is missing; exit 1)