Gcc Error Unrecognized Option - Export-dynamic
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might rdynamic have Meta Discuss the workings and policies of this site About
Xlinker
Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up GCC compiler error: unrecognized option '--export-dynamic' up vote 0 down vote favorite The context is the following: I am trying to compile InkscapeLite from sources in Linux Mint. At the end of the compilation, the last command is (some .o and .a files are replaced with "...", because the command is very long): gcc -g -O2 -o inkscape --export-dynamic inkscape.o inkscape-stock.o ... ./.libs/libinkscape.al dialogs/libspdialogs.a ... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 /usr/lib/i386-linux-gnu/libcairo.so -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 /usr/lib/i386-linux-gnu/libart_lgpl_2.so /usr/lib/i386-linux-gnu/libxml2.so /usr/lib/i386-linux-gnu/libpopt.so -lpng -lXft -L/usr/lib/i386-linux-gnu /usr/lib/i386-linux-gnu/libfreetype.so -lz -Wl,--rpath -Wl,/usr/lib/i386-linux-gnu -Wl,--rpath -Wl,/usr/lib/i386-linux-gnu It fails with error: gcc: error: unrecognized option '--export-dynamic' What I have done is to replace --export-dynamic with -export-dynamic, just for test (notice, I am not C/C++ programmer and know nothing about GCC or any other C compiler) and executed the command manually in the console. The compilation ended without errors and the program works, but it misses almost all toolbar and menu icons (only some common icons are there as open/save/copy/paste...) Is it because of this problem option --export-dynamic or there is some different problem in the sources? BTW, the same program works normally in the Puppy Linux distributions. c++ c linux gcc share|improve this question asked Apr 21 '14 at 15:48 j
Sign in Pricing Blog Support Search GitHub This repository Watch 16 Star 42 Fork 17 pspdev/psp-ports Code Issues 1 Pull requests 0 Projects 0 Pulse Graphs New issue zziplib doesn't build #9 Closed libcg opened this Issue Mar 7, 2012 · 4 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants pspdev member libcg commented Mar 7, 2012 I just recompiled my entire SDK http://stackoverflow.com/questions/23200755/gcc-compiler-error-unrecognized-option-export-dynamic but zziplib doesn't build. /bin/sh ../libtool --silent --mode=link --tag=CC psp-gcc -O2 -D_USE_MMAP -fomit-frame-pointer -Wall -Wstrict-prototypes -Wpointer-arith -Wsign-compare -Wmissing-declarations -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser -o zzipwrap --export-dynamic zzipwrap.o libzzipwrap.la -lc -lpspuser
psp-gcc: error: unrecognized option '--export-dynamic' It seems to be caused by the new version of GCC : http://gcc.gnu.org/gcc-4.6/changes.html I'm trying to fix that ASAP. pspdev member SamRH https://github.com/pspdev/psp-ports/issues/9 commented Mar 8, 2012 On line 281 of configure.ac replace ZZIPLIB_LDFLAGS="--export-dynamic" with ZZIPLIB_LDFLAGS='${wl}--export-dynamic' and run autoreconf. I think that should fix it. bootsector commented Jun 3, 2012 SamRH suggestion did the trick. Now I'm stuck at this one: libtool: install: /usr/bin/install -c .libs/libsqlite3.lai /opt/pspdev/psp/lib/libsqlite3.la libtool: install: /usr/bin/install -c .libs/libsqlite3.a /opt/pspdev/psp/lib/libsqlite3.a libtool: install: chmod 644 /opt/pspdev/psp/lib/libsqlite3.a libtool: install: psp-ranlib /opt/pspdev/psp/lib/libsqlite3.a Libraries have been installed in: /opt/pspdev/psp/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: add LIBDIR to the `LD_RUN_PATH' environment variable during linking use the `-Wl,-rpath -Wl,LIBDIR' linker flag have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. /usr/bin/install -c -d /opt/pspdev/psp/include /usr/bin/install -c -m 0644 sqlite3.h /opt/pspdev/psp/include /usr/bin/install -c -m
Date: Mon, 2 May 2011 12:54:10 UTC Severity: serious Tags: sid, wheezy Found in version revelation/0.4.11-8 Fixed in version revelation/0.4.11-9 https://bugs.debian.org/625040 Done: Stefan Völkel