So looks like we had -Wl (look here:
http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html) linker flags that
never errored out until they made it an error in gcc 4.7. I removed
them, they appear to be only useful for setting options, which we don't do.
>From a8113ca44431868169909d6f07853a16842a293f Mon Sep 17 00:00:00 2001
From: Ivo Brunnbauer <[email protected]>
Date: Fri, 4 May 2012 18:13:05 +0200
Subject: [PATCH] fixes compiling errors in gcc 4.7
---
plugins/auth/Makefile.in | 2 +-
plugins/cheetah/Makefile.in | 2 +-
plugins/dirlisting/Makefile.in | 2 +-
plugins/liana/Makefile.in | 2 +-
plugins/liana_ssl/Makefile.in | 2 +-
plugins/mandril/Makefile.in | 2 +-
plugins/palm/Makefile.in | 2 +-
plugins/patas/Makefile.in | 2 +-
plugins/websockets/Makefile.in | 2 +-
diff --git a/plugins/auth/Makefile.in b/plugins/auth/Makefile.in
index 80a78c1..76e8acd 100644
--- a/plugins/auth/Makefile.in
+++ b/plugins/auth/Makefile.in
@@ -8,7 +8,7 @@ OBJECTS = sha1.o base64.o conf.o auth.o
all: monkey-auth.so
monkey-auth.so: $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lc
.c.o: $(SOURCES)
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -I$(INCDIR) -fPIC -c $<
diff --git a/plugins/cheetah/Makefile.in b/plugins/cheetah/Makefile.in
index c87e4c5..0dd252c 100644
--- a/plugins/cheetah/Makefile.in
+++ b/plugins/cheetah/Makefile.in
@@ -8,7 +8,7 @@ CHEETAH_OBJECTS = cheetah.o loop.o cmd.o cutils.o
all: monkey-cheetah.so
monkey-cheetah.so: $(CHEETAH_OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lc
.c.o:
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -I$(INCDIR) -fPIC -c $<
diff --git a/plugins/dirlisting/Makefile.in b/plugins/dirlisting/Makefile.in
index a539a98..a139e8f 100644
--- a/plugins/dirlisting/Makefile.in
+++ b/plugins/dirlisting/Makefile.in
@@ -8,7 +8,7 @@ DIRLISTING_OBJECTS = dirlisting.o
all: monkey-dirlisting.so
monkey-dirlisting.so: $(DIRLISTING_OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lc
.c.o:
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -I$(INCDIR) -fPIC -c $<
diff --git a/plugins/liana/Makefile.in b/plugins/liana/Makefile.in
index 6171122..799133a 100644
--- a/plugins/liana/Makefile.in
+++ b/plugins/liana/Makefile.in
@@ -8,7 +8,7 @@ LIANA_OBJECTS = liana.o
all: monkey-liana.so
monkey-liana.so: $(LIANA_OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lc
.c.o:
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -I$(INCDIR) -fPIC -c $<
diff --git a/plugins/liana_ssl/Makefile.in b/plugins/liana_ssl/Makefile.in
index 9286700..4457091 100644
--- a/plugins/liana_ssl/Makefile.in
+++ b/plugins/liana_ssl/Makefile.in
@@ -9,7 +9,7 @@ MATRIX_HEADERS = /usr/include/matrixssl/
all: monkey-liana_ssl.so
monkey-liana_ssl.so: $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lmatrixssl
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lmatrixssl
.c.o:
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(INCDIR) -I$(MATRIX_HEADERS) -fPIC -c $<
diff --git a/plugins/mandril/Makefile.in b/plugins/mandril/Makefile.in
index 3054878..a8e1f37 100644
--- a/plugins/mandril/Makefile.in
+++ b/plugins/mandril/Makefile.in
@@ -8,7 +8,7 @@ MANDRIL_OBJECTS = mandril.o
all: monkey-mandril.so
monkey-mandril.so: $(MANDRIL_OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lc
.c.o:
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -I$(INCDIR) -fPIC -c $<
diff --git a/plugins/palm/Makefile.in b/plugins/palm/Makefile.in
index 2ab2c7c..2b1fb10 100644
--- a/plugins/palm/Makefile.in
+++ b/plugins/palm/Makefile.in
@@ -9,7 +9,7 @@ OBJECTS = palm.o protocol.o cgi.o request.o
all: monkey-palm.so
monkey-palm.so: $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lc
.c.o: $(SOURCES)
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -I$(INCDIR) -fPIC -c $<
diff --git a/plugins/patas/Makefile.in b/plugins/patas/Makefile.in
index 34ab900..fb4e06b 100644
--- a/plugins/patas/Makefile.in
+++ b/plugins/patas/Makefile.in
@@ -8,7 +8,7 @@ PATAS_OBJECTS = patas.o connection.o
all: monkey-patas.so
monkey-patas.so: $(PATAS_OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lc
.c.o:
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -I$(INCDIR) -fPIC -c $<
diff --git a/plugins/websockets/Makefile.in b/plugins/websockets/Makefile.in
index 4bbb87b..be3db31 100644
--- a/plugins/websockets/Makefile.in
+++ b/plugins/websockets/Makefile.in
@@ -8,7 +8,7 @@ WS_OBJECTS = ws.o request.o base64.o sha1.o echo.o
all: monkey-websockets.so
monkey-websockets.so: $(WS_OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -Wl -o $@ $^ -lc
+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -shared -o $@ $^ -lc
.c.o:
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) -I$(INCDIR) -fPIC -c $<
--
1.7.7
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey