mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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',
|
'-DGTK_COMPILATION',
|
||||||
'-DG_LOG_DOMAIN="Gdk"',
|
'-DG_LOG_DOMAIN="Gdk"',
|
||||||
] + common_cflags,
|
] + common_cflags,
|
||||||
link_args: common_ldflags,
|
|
||||||
dependencies: [gdk_deps, gdk_broadway_deps])
|
dependencies: [gdk_deps, gdk_broadway_deps])
|
||||||
|
|
||||||
# gtk4-broadwayd
|
# gtk4-broadwayd
|
||||||
|
@ -58,6 +58,5 @@ libgdk_macos = static_library('gdk-macos',
|
|||||||
gdk_macos_sources, gdkconfig, gdkenum_h,
|
gdk_macos_sources, gdkconfig, gdkenum_h,
|
||||||
include_directories: [ confinc, gdkinc, ],
|
include_directories: [ confinc, gdkinc, ],
|
||||||
c_args: libgdk_c_args + common_cflags,
|
c_args: libgdk_c_args + common_cflags,
|
||||||
link_args: common_ldflags,
|
|
||||||
link_with: [],
|
link_with: [],
|
||||||
dependencies: gdk_deps + gdk_macos_deps)
|
dependencies: gdk_deps + gdk_macos_deps)
|
||||||
|
@ -251,7 +251,7 @@ libgdk = static_library('gdk',
|
|||||||
include_directories: [confinc, gdkx11_inc, wlinc],
|
include_directories: [confinc, gdkx11_inc, wlinc],
|
||||||
c_args: libgdk_c_args + common_cflags,
|
c_args: libgdk_c_args + common_cflags,
|
||||||
link_whole: gdk_backends,
|
link_whole: gdk_backends,
|
||||||
link_args: common_ldflags)
|
)
|
||||||
|
|
||||||
# We don't have link_with: to internal static libs here on purpose, just
|
# 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
|
# 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,
|
sources: wayland_cursor_sources,
|
||||||
include_directories: [ confinc, ],
|
include_directories: [ confinc, ],
|
||||||
dependencies: [ glib_dep, wlclientdep, ],
|
dependencies: [ glib_dep, wlclientdep, ],
|
||||||
c_args: common_cflags,
|
c_args: common_cflags)
|
||||||
link_args: common_ldflags)
|
|
||||||
|
@ -102,6 +102,5 @@ libgdk_wayland = static_library('gdk-wayland',
|
|||||||
'-DGTK_COMPILATION',
|
'-DGTK_COMPILATION',
|
||||||
'-DG_LOG_DOMAIN="Gdk"',
|
'-DG_LOG_DOMAIN="Gdk"',
|
||||||
] + common_cflags,
|
] + common_cflags,
|
||||||
link_args: common_ldflags,
|
|
||||||
link_with: [libwayland_cursor, ],
|
link_with: [libwayland_cursor, ],
|
||||||
dependencies: [ gdk_deps, gdk_wayland_deps])
|
dependencies: [ gdk_deps, gdk_wayland_deps])
|
||||||
|
@ -79,5 +79,4 @@ libgdk_x11 = static_library('gdk-x11', gdkmarshal_h,
|
|||||||
'-DGTK_COMPILATION',
|
'-DGTK_COMPILATION',
|
||||||
'-DG_LOG_DOMAIN="Gdk"',
|
'-DG_LOG_DOMAIN="Gdk"',
|
||||||
] + common_cflags,
|
] + common_cflags,
|
||||||
link_args: common_ldflags,
|
|
||||||
dependencies: [ gdk_deps, gdk_x11_deps, ])
|
dependencies: [ gdk_deps, gdk_x11_deps, ])
|
||||||
|
@ -175,8 +175,7 @@ libgsk = static_library('gsk',
|
|||||||
'-DG_LOG_DOMAIN="Gsk"',
|
'-DG_LOG_DOMAIN="Gsk"',
|
||||||
'-DG_LOG_STRUCTURED=1',
|
'-DG_LOG_STRUCTURED=1',
|
||||||
] + common_cflags,
|
] + common_cflags,
|
||||||
link_with: libgdk,
|
link_with: libgdk)
|
||||||
link_args: common_ldflags)
|
|
||||||
|
|
||||||
# We don't have link_with: to internal static libs here on purpose, just
|
# 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
|
# list the dependencies and generated headers and such, for use in the
|
||||||
|
@ -47,8 +47,7 @@ libgtk_css = static_library('gtk_css',
|
|||||||
c_args: [
|
c_args: [
|
||||||
'-DGTK_COMPILATION',
|
'-DGTK_COMPILATION',
|
||||||
'-DG_LOG_DOMAIN="Gtk"',
|
'-DG_LOG_DOMAIN="Gtk"',
|
||||||
] + common_cflags,
|
] + common_cflags)
|
||||||
link_args: common_ldflags)
|
|
||||||
|
|
||||||
# We don't have link_with: to internal static libs here on purpose, just
|
# 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
|
# list the dependencies and generated headers and such, for use in the
|
||||||
|
Loading…
Reference in New Issue
Block a user