Gbp-Pq: Name kfreebsd-amd64_bootstrap.patch
DllCmd[2]:='strip --strip-unneeded $EXE'
else
DllCmd[2]:='strip -x $EXE';
- { OpenBSD seems to use a wrong dynamic linker by default }
- if target_info.system in systems_openbsd then
- DynamicLinker:='/usr/libexec/ld.so'
- else if target_info.system in systems_netbsd then
- DynamicLinker:='/usr/libexec/ld.elf_so'
- else
- DynamicLinker:='';
+ { On Debian systems it seems we have to set the dynamicLinker }
+ DynamicLinker:='/lib/ld-kfreebsd-x86-64.so.1';
end;
end;
plibcint=^libcint;
{$if defined(FreeBSD) or defined(DragonFly)} // tested on x86
-function geterrnolocation: Plibcint; cdecl;external clib name '__error';
+function geterrnolocation: Plibcint; cdecl;external clib name '__errno_location';
{$else}
{$ifdef NetBSD} // from a sparc dump.
function geterrnolocation: Plibcint; cdecl;external clib name '__errno';
{$endif}
{$if defined(FreeBSD) or defined(DragonFly)} // tested on x86
-function geterrnolocation: pcint; cdecl;external clib name '__error';
+function geterrnolocation: pcint; cdecl;external clib name '__errno_location';
{$endif}
{$ifdef OpenBSD} // tested on x86