diff options
author | Ben LaHaise <bcrl@kvack.org> | 2002-09-13 03:28:33 +0000 |
---|---|---|
committer | Ben LaHaise <bcrl@kvack.org> | 2002-09-13 03:28:33 +0000 |
commit | 8a9aa88e5092b35692773cd50d31b7723667794e (patch) | |
tree | 5fd7fb3eb6fc8e54efa27ec4a7fcdc9131576b89 | |
parent | 23b990b58086634326c484a08293cb2950976f50 (diff) | |
download | libaio-8a9aa88e5092b35692773cd50d31b7723667794e.tar.gz |
-fPIC bites me.
-rw-r--r-- | src/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 7969bad..29b03dd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,8 @@ prefix=/usr -CFLAGS=-fPIC -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 +ARCH := $(shell uname -m | sed -e s/i.86/i386/) +CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 +CFLAGS += $(shell if [ "$(ARCH)" != "i386" ] ; then echo -fPIC ; fi) SO_CFLAGS=-shared $(CFLAGS) L_CFLAGS=$(CFLAGS) LINK_FLAGS= |