aboutsummaryrefslogtreecommitdiff
path: root/winsup/mingw/profile
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2003-05-06 13:26:44 +0000
committerEarnie Boyd <earnie@users.sf.net>2003-05-06 13:26:44 +0000
commit42fbaad1e8c9f26bd92ddbb3248cc8bfd03db173 (patch)
tree83dd250a5952a0e50d3dd912269eeafb6bef22b3 /winsup/mingw/profile
parentaf70a0ea40ac29f809b2efb1d5ec5e960219cbb6 (diff)
downloadnewlib-42fbaad1e8c9f26bd92ddbb3248cc8bfd03db173.zip
newlib-42fbaad1e8c9f26bd92ddbb3248cc8bfd03db173.tar.gz
newlib-42fbaad1e8c9f26bd92ddbb3248cc8bfd03db173.tar.bz2
* configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
of multiply defined symbols if the symbols is defined locally. E.G.: A local definition of malloc causes this problem. * configure: Regenerate. * profile/Makefile.in (W32API_INCLUDE): New variable. (ALL_CFLAGS): Use W32API_INCLUDE value. (ALL_CXXFLAGS): Ditto. (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS. Thanks to Jeff Bonggren <jbon@users.sf.net>. * profile/configure.in (W32API_INCLUDE): Set default value. * profile/configure: Regenerate. * mingwex/Makefile.in (W32API_INCLUDE): New variable. (ALL_CFLAGS): Use W32API-INCLUDE value. (ALL_CXXFLAGS): Ditto. * mingwex/configure.in (W32API_INCLUDE): Set default value. * mingwex/configure: Regenerate.
Diffstat (limited to 'winsup/mingw/profile')
-rw-r--r--winsup/mingw/profile/Makefile.in12
-rwxr-xr-xwinsup/mingw/profile/configure6
-rw-r--r--winsup/mingw/profile/configure.in3
3 files changed, 14 insertions, 7 deletions
diff --git a/winsup/mingw/profile/Makefile.in b/winsup/mingw/profile/Makefile.in
index aca3a29..d6038d5 100644
--- a/winsup/mingw/profile/Makefile.in
+++ b/winsup/mingw/profile/Makefile.in
@@ -47,12 +47,12 @@ THREAD_DLL = @THREAD_DLL@
THREAD_DLL_VERSION = 10
THREAD_DLL_NAME = $(THREAD_DLL)$(THREAD_DLL_VERSION).dll
+W32API_INCLUDE = @W32API_INCLUDE@
INCLUDES = -I$(srcdir) -I$(srcdir)/../include \
- -I$(srcdir)/../../w32api/include \
-nostdinc -nostdinc++ \
-iwithprefixbefore include
-ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(MNO_CYGWIN)
-ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) $(MNO_CYGWIN)
+ALL_CFLAGS = $(CFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN)
+ALL_CXXFLAGS = $(CXXFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN)
AS = @AS@
AR = @AR@
@@ -81,13 +81,13 @@ $(LIBGMON_A): $(LIBGMON_OBJS) $(CRT0S)
# FIXME: These are really the same, but gcc specs want different names.
# The only CRT dependency is atexit.
gcrt0.o: gcrt0.c
- $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $?
+ $(CC) -c -o $@ $(CPPFLAGS) $(ALL_CFLAGS) $?
gcrt1.o: gcrt0.c
- $(CC) -U__MSVCRT__ -c -o $@ $(CPPFLAGS) $(CFLAGS) $?
+ $(CC) -U__MSVCRT__ -c -o $@ $(CPPFLAGS) $(ALL_CFLAGS) $?
gcrt2.o: gcrt0.c
- $(CC) -D__MSVCRT__ -c -o $@ $(CPPFLAGS) $(CFLAGS) $?
+ $(CC) -D__MSVCRT__ -c -o $@ $(CPPFLAGS) $(ALL_CFLAGS) $?
#
# Dependancies
diff --git a/winsup/mingw/profile/configure b/winsup/mingw/profile/configure
index f9c64e0..fba24e6 100755
--- a/winsup/mingw/profile/configure
+++ b/winsup/mingw/profile/configure
@@ -671,6 +671,9 @@ case "$target_os" in
;;
esac
+W32API_INCLUDE='$(subdir)/../w32api/include'
+
+
@@ -689,7 +692,7 @@ esac
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:693: checking for a BSD compatible install" >&5
+echo "configure:696: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -913,6 +916,7 @@ s%@RUNTIME@%$RUNTIME%g
s%@MNO_CYGWIN@%$MNO_CYGWIN%g
s%@LIBGMON_A@%$LIBGMON_A%g
s%@CRT0S@%$CRT0S%g
+s%@W32API_INCLUDE@%$W32API_INCLUDE%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
diff --git a/winsup/mingw/profile/configure.in b/winsup/mingw/profile/configure.in
index e688a67..2496c28 100644
--- a/winsup/mingw/profile/configure.in
+++ b/winsup/mingw/profile/configure.in
@@ -61,11 +61,14 @@ case "$target_os" in
;;
esac
+W32API_INCLUDE='$(subdir)/../w32api/include'
+
AC_SUBST(CRT_ID)
AC_SUBST(RUNTIME)
AC_SUBST(MNO_CYGWIN)
AC_SUBST(LIBGMON_A)
AC_SUBST(CRT0S)
+AC_SUBST(W32API_INCLUDE)
AC_PROG_INSTALL
AC_OUTPUT(Makefile)