[gjs: 3/12] build: Don't override -no-undefined
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/12] build: Don't override -no-undefined
- Date: Fri, 5 Mar 2021 05:05:09 +0000 (UTC)
commit f202b5fdfb60358c934688774a166c0988fd17e5
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Feb 13 14:25:04 2021 -0800
build: Don't override -no-undefined
Meson already has a setting for this, and we should just let Meson handle
this flag appropriately for whichever compiler and linker are chosen.
meson.build | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
---
diff --git a/meson.build b/meson.build
index a828a24f..9850f683 100644
--- a/meson.build
+++ b/meson.build
@@ -490,15 +490,6 @@ if build_profiler
libgjs_dependencies += profiler_deps
endif
-link_args = []
-if cxx.has_link_argument('-Wl,-no-undefined')
- link_args += '-Wl,-no-undefined'
-else
- # -undefined error is the equivalent of -no-undefined for the macOS linker,
- # but -undefined would also be understood as a valid argument for GNU ld!
- link_args += cxx.get_supported_link_arguments('-Wl,-undefined,error')
-endif
-
libgjs_cpp_args = ['-DGJS_COMPILATION'] + directory_defines
# Check G-I and/or Meson on this one.
@@ -512,10 +503,10 @@ endif
libgjs_jsapi = static_library(meson.project_name() + '-jsapi',
libgjs_jsapi_sources, probes_header, probes_objfile,
cpp_args: libgjs_cpp_args,
- link_args: link_args,
dependencies: libgjs_dependencies,
install: false)
+link_args = []
symbol_map = files('libgjs.map')
symbol_list = files('libgjs.symbols')
link_args += cxx.get_supported_link_arguments([
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]