From b61e8ebad648218682714b467e7d16d19a84e5f3 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 24 Sep 2012 21:50:19 +0200 Subject: [PATCH] Add csu objects to shared libraries on OpenBSD. This is required by recent changes to the stack protector code in gcc, generating references to __guard_local instead of __guard, defined in crtbeginS.o. This is a temporary solution; strictly speaking, we shouldn't invoke ld directly at all but use cc instead. --- cde/config/cf/OpenBSD.cf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cde/config/cf/OpenBSD.cf b/cde/config/cf/OpenBSD.cf index 163c40b8..ccde1f89 100644 --- a/cde/config/cf/OpenBSD.cf +++ b/cde/config/cf/OpenBSD.cf @@ -1028,5 +1028,7 @@ install:: fonts.alias @@\ #define KornShell /usr/local/bin/ksh93 #endif +#define SharedLibraryLoadFlags -shared /usr/lib/crtbeginS.o /usr/lib/crtendS.o + /* This must come last */ #include -- 2.25.1