ld configure: Add another dash to export-dynamic. (mono/mono#15717)
authorJay Krell <jaykrell@microsoft.com>
Wed, 24 Jul 2019 23:02:46 +0000 (16:02 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 24 Jul 2019 23:02:46 +0000 (01:02 +0200)
GNU ld accept single or double dash, means the same thing.
AIX ld warns on single dash, errors on double dash, in autoconf, and then errors on single dash later.
We want the double dash so autoconf rejects it on AIX.

Commit migrated from https://github.com/mono/mono/commit/8cc722683458ab4745bebc3656224014d9927e5c

src/mono/configure.ac

index 7e28781..cab608f 100644 (file)
@@ -5111,7 +5111,7 @@ AC_SEARCH_LIBS(dlopen, dl)
 # Apple -bind_at_load
 # The rest GNU.
 #
-AX_APPEND_LINK_FLAGS([-Wl,-export-dynamic -Wl,-Bsymbolic -bsymbolic -Wl,-z,now -Wl,-bind_at_load])
+AX_APPEND_LINK_FLAGS([-Wl,--export-dynamic -Wl,-Bsymbolic -bsymbolic -Wl,-z,now -Wl,-bind_at_load])
 
 AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h sys/wait.h pwd.h iconv.h sys/types.h sys/resource.h)
 dnl giconv.c will check on HAVE_ICONV_H but we need this for link time