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.
This commit is contained in:
parent
5c190736fd
commit
a5862816b1
@ -329,7 +329,7 @@ if ( $(OSPLAT) = X86 )
|
|||||||
switch $(TYPE)
|
switch $(TYPE)
|
||||||
{
|
{
|
||||||
case APP : LINKFLAGS += -Xlinker -soname=_APP_ ;
|
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_ ;
|
case DRIVER : LINKFLAGS += -nostdlib /boot/develop/lib/x86/_KERNEL_ ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ endif
|
|||||||
LDFLAGS += -Xlinker -soname=_APP_
|
LDFLAGS += -Xlinker -soname=_APP_
|
||||||
else
|
else
|
||||||
ifeq ($(strip $(TYPE)), SHARED)
|
ifeq ($(strip $(TYPE)), SHARED)
|
||||||
LDFLAGS += -nostart -Xlinker -soname=$(NAME)
|
LDFLAGS += -shared -Xlinker -soname=$(NAME)
|
||||||
else
|
else
|
||||||
ifeq ($(strip $(TYPE)), DRIVER)
|
ifeq ($(strip $(TYPE)), DRIVER)
|
||||||
LDFLAGS += -nostdlib /boot/develop/lib/x86/_KERNEL_ \
|
LDFLAGS += -nostdlib /boot/develop/lib/x86/_KERNEL_ \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user