--- src/Makefile.orig 2005-10-11 10:43:13.000000000 -0400 +++ src/Makefile 2005-10-11 10:44:24.000000000 -0400 @@ -2,11 +2,10 @@ includedir=$(prefix)/include libdir=$(prefix)/lib -ARCH := $(shell uname -m | sed -e s/i.86/i386/) -CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC -SO_CFLAGS=-shared $(CFLAGS) +CFLAGS += -nostdlib -nostartfiles -Wall -I. +SO_CFLAGS=-shared $(CFLAGS) -fPIC L_CFLAGS=$(CFLAGS) -LINK_FLAGS= +LINK_FLAGS=$(LDFLAGS) soname=libaio.so.1 minor=0