patch-src_Makefile 1.1 KB

1234567891011121314151617181920212223242526
  1. --- libaio-0.3.109.orig/src/Makefile 2009-10-09 20:17:02.000000000 +0200
  2. +++ libaio-0.3.109/src/Makefile 2012-08-18 12:47:38.000000000 +0200
  3. @@ -3,7 +3,8 @@ includedir=$(prefix)/include
  4. libdir=$(prefix)/lib
  5. ARCH := $(shell uname -m | sed -e s/i.86/i386/)
  6. -CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
  7. +CFLAGS ?= -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
  8. +CFLAGS += -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
  9. SO_CFLAGS=-shared $(CFLAGS)
  10. L_CFLAGS=$(CFLAGS)
  11. LINK_FLAGS=
  12. @@ -51,9 +52,10 @@ $(libname): $(libaio_sobjs) libaio.map
  13. $(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
  14. install: $(all_targets)
  15. - install -D -m 644 libaio.h $(includedir)/libaio.h
  16. - install -D -m 644 libaio.a $(libdir)/libaio.a
  17. - install -D -m 755 $(libname) $(libdir)/$(libname)
  18. + mkdir -p $(includedir) $(libdir)
  19. + install -m 644 libaio.h $(includedir)/libaio.h
  20. + install -m 644 libaio.a $(libdir)/libaio.a
  21. + install -m 755 $(libname) $(libdir)/$(libname)
  22. ln -sf $(libname) $(libdir)/$(soname)
  23. ln -sf $(libname) $(libdir)/libaio.so