forked from AuroraMiddleware/gtk
build: Remove linker flags from static libraries
We only need hardening linker flags on the libgtk shared library; internal static libraries don't really need them.
This commit is contained in:
parent
11bca98a29
commit
7975bbfcaa
@ -59,7 +59,6 @@ libgdk_broadway = static_library('gdk-broadway',
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gdk"',
|
||||
] + common_cflags,
|
||||
link_args: common_ldflags,
|
||||
dependencies: [gdk_deps, gdk_broadway_deps])
|
||||
|
||||
# gtk4-broadwayd
|
||||
|
@ -58,6 +58,5 @@ libgdk_macos = static_library('gdk-macos',
|
||||
gdk_macos_sources, gdkconfig, gdkenum_h,
|
||||
include_directories: [ confinc, gdkinc, ],
|
||||
c_args: libgdk_c_args + common_cflags,
|
||||
link_args: common_ldflags,
|
||||
link_with: [],
|
||||
dependencies: gdk_deps + gdk_macos_deps)
|
||||
|
@ -251,7 +251,7 @@ libgdk = static_library('gdk',
|
||||
include_directories: [confinc, gdkx11_inc, wlinc],
|
||||
c_args: libgdk_c_args + common_cflags,
|
||||
link_whole: gdk_backends,
|
||||
link_args: common_ldflags)
|
||||
)
|
||||
|
||||
# We don't have link_with: to internal static libs here on purpose, just
|
||||
# list the dependencies and generated headers and such, for use in the
|
||||
|
@ -8,5 +8,4 @@ libwayland_cursor = static_library('wayland+cursor',
|
||||
sources: wayland_cursor_sources,
|
||||
include_directories: [ confinc, ],
|
||||
dependencies: [ glib_dep, wlclientdep, ],
|
||||
c_args: common_cflags,
|
||||
link_args: common_ldflags)
|
||||
c_args: common_cflags)
|
||||
|
@ -102,6 +102,5 @@ libgdk_wayland = static_library('gdk-wayland',
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gdk"',
|
||||
] + common_cflags,
|
||||
link_args: common_ldflags,
|
||||
link_with: [libwayland_cursor, ],
|
||||
dependencies: [ gdk_deps, gdk_wayland_deps])
|
||||
|
@ -79,5 +79,4 @@ libgdk_x11 = static_library('gdk-x11', gdkmarshal_h,
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gdk"',
|
||||
] + common_cflags,
|
||||
link_args: common_ldflags,
|
||||
dependencies: [ gdk_deps, gdk_x11_deps, ])
|
||||
|
@ -175,8 +175,7 @@ libgsk = static_library('gsk',
|
||||
'-DG_LOG_DOMAIN="Gsk"',
|
||||
'-DG_LOG_STRUCTURED=1',
|
||||
] + common_cflags,
|
||||
link_with: libgdk,
|
||||
link_args: common_ldflags)
|
||||
link_with: libgdk)
|
||||
|
||||
# We don't have link_with: to internal static libs here on purpose, just
|
||||
# list the dependencies and generated headers and such, for use in the
|
||||
|
@ -47,8 +47,7 @@ libgtk_css = static_library('gtk_css',
|
||||
c_args: [
|
||||
'-DGTK_COMPILATION',
|
||||
'-DG_LOG_DOMAIN="Gtk"',
|
||||
] + common_cflags,
|
||||
link_args: common_ldflags)
|
||||
] + common_cflags)
|
||||
|
||||
# We don't have link_with: to internal static libs here on purpose, just
|
||||
# list the dependencies and generated headers and such, for use in the
|
||||
|
Loading…
Reference in New Issue
Block a user