Hello developers,
we run into a little problem while dealing with upcoming gcc 4.6 compatibility.
Any help for a "good" solution appreciated. Full story below. Thanks, Adib. -- There should be linker flags leading by "-Wl" curently there is not such option. Gcc fails builing without. But under OSX a native apple darwin compiler is used that do not know this option.
I modified makefile to test for osx: src/Makefile.am: ... if PLATFORM_OSX inkscape_LDFLAGS = --export-dynamic $(kdeldflags) $(mwindows) else inkscape_LDFLAGS = -Wl,--export-dynamic $(kdeldflags) $(mwindows) endif ... and conficure.ac: ... dnl ****************************** dnl MacOS X dnl ****************************** AC_MSG_CHECKING([for OSX platform]) if test "x$build_vendor" = "xapple" ; then platform_osx=yes else platform_osx=no fi AC_MSG_RESULT([$platform_osx]) AM_CONDITIONAL(PLATFORM_OSX, test "$platform_osx" = "yes") ...
But we should test for linker not a gnu linker. There is such test in aclocal.m4: ... # _LT_PATH_LD_GNU #- -------------- m4_defun([_LT_PATH_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;; *) lt_cv_prog_gnu_ld=no ;; esac]) with_gnu_ld=$lt_cv_prog_gnu_ld ])# _LT_PATH_LD_GNU ...
So the question is how to modify those files that gnu linker is checked and in case on gnu linker we put "-Wl" in front of those linkre oprtions?
Thanks for patience, Adib.