From a5862816b1b28f8cf94e601057f8e4fb21969f17 Mon Sep 17 00:00:00 2001 From: Siarzhuk Zharski Date: Sun, 26 May 2013 12:42:46 +0200 Subject: [PATCH] Jamfile/makefile-engines:replace -nostart with -shared Starting from our GCC 4.7.3 the shared library -nostart option is not valid anymore. Replace it with -shared one that works in GCC2 build environment too. --- data/develop/Jamfile-engine | 2 +- data/develop/makefile-engine | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/develop/Jamfile-engine b/data/develop/Jamfile-engine index bdec959add..86c6c3f9a6 100644 --- a/data/develop/Jamfile-engine +++ b/data/develop/Jamfile-engine @@ -329,7 +329,7 @@ if ( $(OSPLAT) = X86 ) switch $(TYPE) { case APP : LINKFLAGS += -Xlinker -soname=_APP_ ; - case SHARED : LINKFLAGS += -nostart -Xlinker -soname=$(NAME) ; + case SHARED : LINKFLAGS += -shared -Xlinker -soname=$(NAME) ; case DRIVER : LINKFLAGS += -nostdlib /boot/develop/lib/x86/_KERNEL_ ; } } diff --git a/data/develop/makefile-engine b/data/develop/makefile-engine index 274b0724a7..cf19c7b900 100644 --- a/data/develop/makefile-engine +++ b/data/develop/makefile-engine @@ -93,7 +93,7 @@ endif LDFLAGS += -Xlinker -soname=_APP_ else ifeq ($(strip $(TYPE)), SHARED) - LDFLAGS += -nostart -Xlinker -soname=$(NAME) + LDFLAGS += -shared -Xlinker -soname=$(NAME) else ifeq ($(strip $(TYPE)), DRIVER) LDFLAGS += -nostdlib /boot/develop/lib/x86/_KERNEL_ \