Files
httrack/html
Xavier Roche d3eecbf211 Gate the GNU-ld libc-force flag behind a linker check
-Wl,--push-state,--no-as-needed,-lc,--pop-state forces libc back into
DT_NEEDED for libraries that reach it only through libhttrack: the
libhtsjava JNI wrapper and the libtest callback examples. The flag is
GNU-ld-specific; Apple's ld rejects it ("ld: unknown options:
--push-state --no-as-needed --pop-state"), breaking the macOS build, and
doesn't need it (every dylib links libSystem anyway).

Probe it once with AX_CHECK_LINK_FLAG and emit it via LIBC_FORCE_LINK
only where the linker accepts it. On GNU/Linux the flag is still applied
and libc.so.6 stays in DT_NEEDED, so behavior is unchanged there.

Signed-off-by: Xavier Roche <roche@httrack.com>
2026-06-14 21:57:56 +02:00
..
2012-03-19 12:51:31 +00:00
2015-03-14 14:04:17 +01:00
2012-03-19 12:55:42 +00:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2015-03-14 14:04:17 +01:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:51:31 +00:00
2013-04-28 16:03:06 +00:00
2015-03-14 14:04:17 +01:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2023-01-14 17:21:57 +01:00
2015-03-14 14:04:17 +01:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:51:31 +00:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2023-01-14 17:21:57 +01:00
2012-03-19 12:59:03 +00:00
2023-01-14 17:21:57 +01:00
2012-03-19 12:59:03 +00:00
2023-01-14 17:21:57 +01:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2023-01-14 17:21:57 +01:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00
2012-03-19 12:59:03 +00:00