From: Viktor Szakats Date: Tue, 24 Jun 2025 23:47:22 +0000 (+0200) Subject: build: stubgss tidy-ups (in tests) X-Git-Tag: curl-8_15_0~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26326c529765e8d998963049a7d355570e584ca0;p=thirdparty%2Fcurl.git build: stubgss tidy-ups (in tests) - cmake: avoid running clang-tidy twice. - autotools: do not pass curl/libtest-specific macros. Also: - autotools: drop `CFLAG_CURL_SYMBOL_HIDING` from libtests. Unused since 09437d8cd46ebc5fefbb578bc11d0ffc522de2f0 #14695 Closes #17738 --- diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt index bf7f9476f1..c55b6ccb31 100644 --- a/tests/libtest/CMakeLists.txt +++ b/tests/libtest/CMakeLists.txt @@ -60,7 +60,7 @@ set_property(TARGET ${BUNDLE} APPEND PROPERTY COMPILE_DEFINITIONS "${CURL_DEBUG_ set_property(TARGET ${BUNDLE} APPEND PROPERTY COMPILE_DEFINITIONS "CURL_NO_OLDIES" "CURL_DISABLE_DEPRECATION") set_target_properties(${BUNDLE} PROPERTIES OUTPUT_NAME "${BUNDLE}" PROJECT_LABEL "Test ${BUNDLE}" UNITY_BUILD OFF C_CLANG_TIDY "") -curl_clang_tidy_tests(${BUNDLE} ${FIRSTFILES} ${UTILS} ${TESTFILES} ${STUB_GSS}) +curl_clang_tidy_tests(${BUNDLE} ${FIRSTFILES} ${UTILS} ${TESTFILES}) if(HAVE_GSSAPI AND UNIX) add_library(stubgss SHARED EXCLUDE_FROM_ALL ${STUB_GSS}) diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am index 6b83ff8f2a..64515c7b4c 100644 --- a/tests/libtest/Makefile.am +++ b/tests/libtest/Makefile.am @@ -45,8 +45,6 @@ include Makefile.inc EXTRA_DIST = CMakeLists.txt .checksrc $(FIRSTFILES) $(UTILS) $(TESTFILES) \ test307.pl test610.pl test613.pl test1013.pl test1022.pl mk-lib1521.pl -CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@ - CFLAGS += @CURL_CFLAG_EXTRAS@ # Prevent LIBS from being used for all link targets @@ -72,7 +70,7 @@ AM_CFLAGS = if BUILD_STUB_GSS noinst_LTLIBRARIES += libstubgss.la -libstubgss_la_CPPFLAGS = $(AM_CPPFLAGS) +libstubgss_la_CPPFLAGS = libstubgss_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version -rpath /nowhere if CURL_LT_SHLIB_USE_NO_UNDEFINED libstubgss_la_LDFLAGS += -no-undefined