mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 09:19:39 +02:00
Add -Fl/usr/lib for openbsd target OS, required to find and link C startup objects
git-svn-id: trunk@26963 -
This commit is contained in:
parent
277c3fb00a
commit
d9c663f198
@ -60,6 +60,8 @@ neednostdlib=1
|
||||
endif
|
||||
ifeq ($(OS_TARGET),openbsd)
|
||||
needusrlocallib=1
|
||||
needusrlib=1
|
||||
neednostdlib=1
|
||||
endif
|
||||
ifeq ($(OS_TARGET),netbsd)
|
||||
neednostdlib=1
|
||||
@ -69,6 +71,9 @@ ifdef needlinkparam
|
||||
override SPECIALLINK=-Xe -k--allow-multiple-definition
|
||||
endif
|
||||
|
||||
ifdef needusrlib
|
||||
override SPECIALLINK+=-Fl/usr/lib
|
||||
endif
|
||||
ifdef needusrlocallib
|
||||
override SPECIALLINK+=-Fl/usr/local/lib
|
||||
endif
|
||||
|
@ -102,6 +102,7 @@ begin
|
||||
end;
|
||||
openbsd : begin
|
||||
P.Options.Add('-Fl/usr/local/lib');
|
||||
P.Options.Add('-Fl/usr/lib');
|
||||
P.Options.Add('-Xd');
|
||||
end;
|
||||
netbsd : P.Options.Add('-Xd');
|
||||
|
Loading…
Reference in New Issue
Block a user