{"author":"Kai Pastor","author_email":"dg0yt@darc.de","author_time":1738911283,"commit_time":1738922707,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"f72b84809216657e4ad3c1a0184775c911080d63","message":"cmake: avoid unnecessary `-L` for implicit link dirs\n\nThe unnecessary `-L` may unexpectedly change the toolchain's chosen\nsearch order in implicit link directories.\n\nCausing this error noticed by a vcpkg user, and reproduced, in the\ncontext of Android NDK r22b, API level 16, static library and CRT\nlinkage:\n~~~\nconfigure:23635: checking whether libcurl is usable\nconfigure:23669: armv7a-linux-androideabi16-clang -o conftest\n  --sysroot=/home/runner/work/boinc/boinc/3rdParty/android/android-ndk-r22b/toolchains/llvm/prebuilt/linux-x86_64/sysroot\n  -DANDROID -DDECLARE_TIMEZONE -Wall\n  -I/home/runner/work/boinc/boinc/3rdParty/buildCache/android/android-tc/arm/arm-linux-androideabi/include\n  -O3 -fomit-frame-pointer -fPIE -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -D__ANDROID_API__=16 -Wall\n  -I/home/runner/work/boinc/boinc/3rdParty/android/vcpkg/installed/arm-android/include\n  -I/home/runner/work/boinc/boinc/3rdParty/android/vcpkg/installed/arm-android/lib/pkgconfig/../../include -DCURL_STATICLIB\n  -L/home/runner/work/boinc/boinc/3rdParty/android/vcpkg/installed/arm-android/lib -llog -fPIE -pie -latomic -static-libstdc++\n  -march=armv7-a -Wl,--fix-cortex-a8 -L/home/runner/work/boinc/boinc/3rdParty/android/vcpkg/installed/arm-android/lib conftest.c\n  -L/home/runner/work/boinc/boinc/3rdParty/android/vcpkg/installed/arm-android/lib/pkgconfig/../../lib -lcurl\n  -L/home/runner/work/boinc/boinc/3rdParty/android/android-ndk-r22b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi\n  -lssl -lcrypto -ldl -pthread -lz  >&5\nclang: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]\nld: error: undefined symbol: bsd_signal\n>>> referenced by legacy_signal_inlines.h:116 (/home/runner/work/boinc/boinc/3rdParty/android/android-ndk-r22b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_signal_inlines.h:116)\n>>>               libcrypto-lib-ui_openssl.o:(read_string_inner) in archive /home/runner/work/boinc/boinc/3rdParty/android/vcpkg/installed/arm-android/lib/libcrypto.a\nld: error: undefined symbol: pthread_atfork\n~~~\nwith the unnecessary option\n~~~\n-L/home/runner/work/boinc/boinc/3rdParty/android/android-ndk-r22b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi\n~~~\nReference: https://github.com/microsoft/vcpkg/pull/43463#issuecomment-2638611717\n\nCloses #16233\n","parents":["0c933081fb3b2451b915f8a81c7f464121fef3a3"],"tree_hash":"68e0b2f89e54ded46e7f1ff7a5b2539d107938e6"}