aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-04-11 21:48:39 +0000
committerChristopher Faylor <me@cgf.cx>2003-04-11 21:48:39 +0000
commit770ff5bcb45cf285c36168ee808eae2d37972ddb (patch)
tree1ab33bd0b3de0e021a1cfddf7ff16109a6582c3e /winsup
parent000cfc2eb2fc4ec5f008be7ac24c14881d7f781b (diff)
downloadnewlib-770ff5bcb45cf285c36168ee808eae2d37972ddb.zip
newlib-770ff5bcb45cf285c36168ee808eae2d37972ddb.tar.gz
newlib-770ff5bcb45cf285c36168ee808eae2d37972ddb.tar.bz2
* Makefile.common (w32api_lib): Fix w32api detection.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/ChangeLog4
-rw-r--r--winsup/Makefile.common4
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/ChangeLog b/winsup/ChangeLog
index c04c562..d755a26 100644
--- a/winsup/ChangeLog
+++ b/winsup/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-11 Christopher Faylor <cgf@redhat.com>
+
+ * Makefile.common (w32api_lib): Fix w32api detection.
+
2003-03-28 Christopher Faylor <cgf@redhat.com>
* Makefile.common (ALL_CXXFLAGS): Make normal '=' type variable so that
diff --git a/winsup/Makefile.common b/winsup/Makefile.common
index d0c69ab..dcac394 100644
--- a/winsup/Makefile.common
+++ b/winsup/Makefile.common
@@ -10,7 +10,7 @@
# This makefile requires GNU make.
-CFLAGS_COMMON:=-Wall -Wwrite-strings -fno-common -pipe -Winline -fbuiltin -fmessage-length=0# -finline-functions
+CFLAGS_COMMON:=-march=i386 -Wall -Wwrite-strings -fno-common -pipe -Winline -fbuiltin -fmessage-length=0# -finline-functions
MALLOC_DEBUG:=#-DMALLOC_DEBUG -I/cygnus/src/uberbaum/winsup/cygwin/dlmalloc
MALLOC_OBJ:=#/cygnus/src/uberbaum/winsup/cygwin/dlmalloc/malloc.o
@@ -120,7 +120,7 @@ endif
nostdinc:=${shell [ -d "$(updir)/w32api" ] && echo "-nostdinc -nostdinc++"}
ifeq (,$(nostdinc))
-override w32api_lib:=${subst //,/,${shell $(CC) -print-search-dirs | awk -F: '/^librar/{for (i = 1; i <= NF; i++) if ($$i ~ /\/lib\/*$$/) print $$i}'}/w32api}
+override w32api_lib:=${subst //,/,${shell $(CC) -print-search-dirs | awk -F: '/^librar/{for (i = 1; i <= NF; i++) if ($$i ~ /\/lib\/*$$/) foo=$$i} END{print foo}'}/w32api}
endif
COMPILE_CXX=$(CXX) $c $(nostdinc) $(ALL_CXXFLAGS) $(GCC_INCLUDE) \