diff options
Diffstat (limited to 'sys-block/aoetools/files/aoetools-32-build.patch')
-rw-r--r-- | sys-block/aoetools/files/aoetools-32-build.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-block/aoetools/files/aoetools-32-build.patch b/sys-block/aoetools/files/aoetools-32-build.patch new file mode 100644 index 000000000000..1bac880dd190 --- /dev/null +++ b/sys-block/aoetools/files/aoetools-32-build.patch @@ -0,0 +1,32 @@ +--- a/Makefile ++++ b/Makefile +@@ -40,7 +40,7 @@ + CONF_SCRIPTS = aoe-discover aoe-interfaces aoe-mkshelf aoe-revalidate aoe-flush aoe-stat + PROGS = aoeping aoecfg aoe-sancheck + COMMANDS := ${CONF_SCRIPTS} aoe-mkdevs aoe-version coraid-update ${PROGS} +-CFLAGS = -Wall -O -g ++CFLAGS += $(CPPFLAGS) + SANCHECKLIBS = -lpthread + + AOE_PING_OBJ = aoeping.o linux.o +@@ -68,17 +68,17 @@ + rm -f ${CONF_SCRIPTS} ${AOE_PING_OBJ} ${AOE_CFG_OBJ} ${SANCHECK_OBJ} ${PROGS} + + aoeping : ${AOE_PING_OBJ} +- ${CC} ${CFLAGS} -o $@ ${AOE_PING_OBJ} ++ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${AOE_PING_OBJ} + aoeping.o : aoeping.c dat.h fns.h + ${CC} ${CFLAGS} -o $@ -c $< + linux.o : linux.c config.h + ${CC} ${CFLAGS} -o $@ -c $< + aoecfg: ${AOE_CFG_OBJ} +- ${CC} ${CFLAGS} -o $@ ${AOE_CFG_OBJ} ++ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${AOE_CFG_OBJ} + aoecfg.o : aoecfg.c dat.h fns.h + ${CC} ${CFLAGS} -o $@ -c $< + aoe-sancheck : ${SANCHECK_OBJ} +- -$(CC) $(CFLAGS) -o $@ ${SANCHECK_OBJ} $(SANCHECKLIBS) ++ -$(CC) $(CFLAGS) ${LDFLAGS} -o $@ ${SANCHECK_OBJ} $(SANCHECKLIBS) + aoe-sancheck.o : aoe-sancheck.c + -$(CC) $(CFLAGS) -o $@ -c $< + |