device-mapper-multipath/static_libaio.patch
Benjamin Marzinski 4fa3700b25 Updated to latest upstream 0.4.8 code: multipath-tools-080804.tgz (git
commit id: eb87cbd0df8adf61d1c74c025f7326d833350f78) fixed 451817,
    456397 (scsi_id_change.patch), 457530 (config_space_fix.patch)
457589 (static_libaio.patch)
2008-08-20 21:48:41 +00:00

23 lines
799 B
Diff

Index: multipath-tools/multipath/Makefile
===================================================================
--- multipath-tools.orig/multipath/Makefile
+++ multipath-tools/multipath/Makefile
@@ -7,7 +7,7 @@ include ../Makefile.inc
OBJS = main.o
CFLAGS += -I$(multipathdir)
-LDFLAGS += -lpthread -ldevmapper -laio -ldl \
+LDFLAGS += -lpthread -ldevmapper -Wl,-Bstatic,-laio,-Bdynamic -ldl \
-lmultipath -L$(multipathdir)
EXEC = multipath
@@ -15,7 +15,7 @@ EXEC = multipath
all: $(EXEC)
$(EXEC): $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) -o $(EXEC) $(LDFLAGS)
+ $(CC) $(CFLAGS) $(OBJS) -o $(EXEC) -Wl,-undefined=io_submit,-undefined=io_getevents,-undefined=io_destroy,-undefined=io_setup $(LDFLAGS) -rdynamic
$(GZIP) $(EXEC).8 > $(EXEC).8.gz
$(GZIP) $(EXEC).conf.5 > $(EXEC).conf.5.gz