Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit c0b4491

Browse files
committed
use LDADD instead of LDFLAGS to fix build failure with ld --as-needed
sbd currently fails to build with the ld --as-needed linker option. All linked libraries need to be placed after the objects that require them. LDFLAGS is only meant for linker options - LDADD should be used to specify libraries to link against.
1 parent c511b06 commit c0b4491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ if SUPPORT_SHARED_DISK
1111
sbd_SOURCES += sbd-md.c
1212
endif
1313

14-
sbd_LDFLAGS = $(glib_LIBS) $(libcoroipcc_LIBS)
14+
sbd_LDADD = $(glib_LIBS) $(libcoroipcc_LIBS)
1515

0 commit comments

Comments
 (0)