mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* Add support for libraries with C linking under Haiku
Patch by Olivier, mantis #28558 git-svn-id: trunk@31362 -
This commit is contained in:
parent
70df08d5be
commit
f59b88f6f8
@ -251,7 +251,13 @@ begin
|
||||
begin
|
||||
linklibc:=true;
|
||||
cprtobj:='dllprt.o';
|
||||
end
|
||||
else if makelib then
|
||||
begin
|
||||
// Making a dll with libc linking. Should be always the case under Haiku.
|
||||
cprtobj:='dllcprt0';
|
||||
end;
|
||||
|
||||
|
||||
if linklibc then
|
||||
prtobj:=cprtobj;
|
||||
|
@ -6,7 +6,7 @@
|
||||
main=rtl
|
||||
|
||||
[target]
|
||||
loaders=prt0 cprt0 func dllprt
|
||||
loaders=prt0 cprt0 dllcprt0 func dllprt
|
||||
units=system uuchar baseunix unixtype ctypes objpas macpas iso7185 strings \
|
||||
# beos \
|
||||
errors dos dl \
|
||||
@ -99,6 +99,9 @@ prt0$(OEXT) : $(CPU_TARGET)/prt0.as
|
||||
cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
|
||||
$(AS) -o $(UNITTARGETDIRPREFIX)cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
|
||||
|
||||
dllcprt0$(OEXT) : $(CPU_TARGET)/dllcprt0.as
|
||||
$(AS) -o $(UNITTARGETDIRPREFIX)dllcprt0$(OEXT) $(CPU_TARGET)/dllcprt0.as
|
||||
|
||||
func$(OEXT) : $(CPU_TARGET)/func.as
|
||||
$(AS) -o $(UNITTARGETDIRPREFIX)func$(OEXT) $(CPU_TARGET)/func.as
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user