diff --git a/support/Makefile b/support/Makefile index ea7b4cd4a0..dfe8e547f6 100644 --- a/support/Makefile +++ b/support/Makefile @@ -281,9 +281,9 @@ CFLAGS-temp_file.c += -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 ifeq (,$(CXX)) LINKS_DSO_PROGRAM = links-dso-program-c -CFLAGS-links-dso-program-c.c += -fexceptions LDLIBS-links-dso-program-c = -lgcc ifeq ($(have-libgcc_s),yes) +CFLAGS-links-dso-program-c.c += -fexceptions LDLIBS-links-dso-program-c += -lgcc_s $(libunwind) endif else