Commit 3519643c authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Christian Hergert

build: don't use undocumented -export-dynamic option

GNU libtool is documented to support -export-dynamic and GNU ld is
documented to support --export-dynamic. However, GCC isn't documented
to support them. While GCC does support -export-dynamic for backwards
compatibility, Clang doesn't support it and interprets it wrongly. This
causes warnings to be shown during linking because Clang splits it into
'-e xport-dynamic' and the linker can't find 'xport-dynamic' symbol.
parent f5532e6b
Pipeline #126638 passed with stages
in 7 minutes and 21 seconds
......@@ -24,7 +24,7 @@ libpeas_gtk_testing_c_args = [
]
libpeas_gtk_testing_link_args = [
'-export-dynamic',
'-Wl,--export-dynamic',
]
libpeas_gtk_testing_lib = library(
......
......@@ -30,7 +30,7 @@ libintrospection_c_args = [
]
libintrospection_link_args = [
'-export-dynamic',
'-Wl,--export-dynamic',
]
libintrospection_lib = library(
......
......@@ -26,7 +26,7 @@ libpeas_testing_c_args = [
]
libpeas_testing_link_args = [
'-export-dynamic',
'-Wl,--export-dynamic',
]
libpeas_testing_lib = library(
......
......@@ -22,7 +22,7 @@ libtesting_util_c_args = [
]
libtesting_util_link_args = [
'-export-dynamic',
'-Wl,--export-dynamic',
]
libtesting_util_lib = library(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment