Add csu objects to shared libraries on OpenBSD.
authorPascal Stumpf <Pascal.Stumpf@cubes.de>
Mon, 24 Sep 2012 19:50:19 +0000 (21:50 +0200)
committerJon Trulson <jon@radscan.com>
Tue, 25 Sep 2012 17:37:23 +0000 (11:37 -0600)
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

index 163c40b8eec551efa19e34b458a087b78b5fd42f..ccde1f89e141dae2afb435ceb39a33b5ebf94a4c 100644 (file)
@@ -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 <bsdLib.rules>