From 6e52a80f23941c16466b8803535415ed1f5c68ab Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 9 Jun 2009 17:34:48 +0000 Subject: replaced -export_dynamic with --export-dynamic and -Wl,--export-dynamic where appropriate. It seems that once upon a time -export_dynamic was a real flag. Now it means -e xport_dynamic, meaning set the entry symbol to xport_dynamic, giving this error message: /usr/bin/ld: warning: cannot find entry symbol xport_dynamic; defaulting to 0000000000001b60 svn path=/trunk/externals/mjlib/; revision=11724 --- makefile | 4 ++-- makefile.in | 4 ++-- makefile.linux | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/makefile b/makefile index 126e864..46259b5 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,7 @@ CC = gcc CXX = c++ LD = ld AFLAGS = -LFLAGS = -export_dynamic -shared +LFLAGS = --export-dynamic -shared WFLAGS = IFLAGS = -I./include -I../src INSTALL_PREFIX=/usr/local @@ -27,7 +27,7 @@ all: $(TARGETS) mjLib: $(TARGETS) cc -c $(CFLAGS) -DPD mjLib.c - $(LD) -export_dynamic -shared -o mjLib.pd_linux *.o $(LIBS) + $(LD) --export-dynamic -shared -o mjLib.pd_linux *.o $(LIBS) strip --strip-unneeded mjLib.pd_linux clean:: diff --git a/makefile.in b/makefile.in index 126e864..46259b5 100644 --- a/makefile.in +++ b/makefile.in @@ -5,7 +5,7 @@ CC = gcc CXX = c++ LD = ld AFLAGS = -LFLAGS = -export_dynamic -shared +LFLAGS = --export-dynamic -shared WFLAGS = IFLAGS = -I./include -I../src INSTALL_PREFIX=/usr/local @@ -27,7 +27,7 @@ all: $(TARGETS) mjLib: $(TARGETS) cc -c $(CFLAGS) -DPD mjLib.c - $(LD) -export_dynamic -shared -o mjLib.pd_linux *.o $(LIBS) + $(LD) --export-dynamic -shared -o mjLib.pd_linux *.o $(LIBS) strip --strip-unneeded mjLib.pd_linux clean:: diff --git a/makefile.linux b/makefile.linux index f1de6a1..5a5ca8e 100644 --- a/makefile.linux +++ b/makefile.linux @@ -5,7 +5,7 @@ CC = gcc CXX = c++ LD = ld AFLAGS = -LFLAGS = -export_dynamic -shared +LFLAGS = --export-dynamic -shared WFLAGS = IFLAGS = -I./include -I../src INSTALL_PREFIX=/usr/local -- cgit v1.2.1