From 0b9d1bc1ff9d9f9c8bc5610096b6169631e761e7 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Thu, 18 Jan 2024 14:44:21 +0100 Subject: [PATCH] Detect dynamic readline and serialport for USE_STATIC_LIBS Detect the dynamic libraries for libreadline and libserialport even when building avrdude with USE_STATIC_LIBS. Fixes: https://github.com/avrdudes/avrdude/issues/1624 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 73bb0714..bde9304b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,8 +124,8 @@ if(USE_STATIC_LIBS) set(PREFERRED_LIBHIDAPI libhidapi.a libhidapi-libusb.a libhidapi-hidraw.a hidapi hidapi-libusb hidapi-hidraw) set(PREFERRED_LIBFTDI libftdi.a ftdi) set(PREFERRED_LIBFTDI1 libftdi1.a ftdi1) - set(PREFERRED_LIBREADLINE libreadline.a) - set(PREFERRED_LIBSERIALPORT libserialport.a) + set(PREFERRED_LIBREADLINE libreadline.a readline) + set(PREFERRED_LIBSERIALPORT libserialport.a serialport) set(PREFERRED_LIBGPIOD libgpiod.a gpiod) else() set(PREFERRED_LIBELF elf)