Browse Source

haiku: Makefile.fpc update for x86_64 support

git-svn-id: trunk@40759 -
Károly Balogh 6 years ago
parent
commit
d19cb0ee4c
1 changed files with 13 additions and 6 deletions
  1. 13 6
      rtl/haiku/Makefile.fpc

+ 13 - 6
rtl/haiku/Makefile.fpc

@@ -6,13 +6,13 @@
 main=rtl
 
 [target]
-loaders=prt0 cprt0 dllcprt0 func dllprt
-units=system uuchar baseunix unixtype ctypes objpas macpas iso7185 extpas strings \
+loaders=$(LOADERS)
+units=system $(SYSINITUNITS) uuchar baseunix unixtype ctypes objpas macpas iso7185 extpas strings \
 #      beos \
       errors dos dl \
       sysconst sysutils \
       types charset cpall character typinfo classes fgl math \
-      cpu mmx getopts heaptrc lineinfo lnfodwrf \
+      cpu $(CPUUNITS) getopts heaptrc lineinfo lnfodwrf \
       rtlconsts syscall unix unixutil termio initc \
       cmem \
       dynlibs cwstring cthreads \
@@ -59,17 +59,24 @@ INC=$(RTL)/inc
 PROCINC=$(RTL)/$(CPU_TARGET)
 UNIXINC=$(RTL)/unix
 HAIKUINC=$(RTL)/haiku
-
+LOADERS=prt0 cprt0 dllcprt0 func dllprt
+CPUUNITS=mmx
+SYSINITUNITS=si_c si_dllc
 UNITPREFIX=rtl
 
+ifeq ($(ARCH),x86_64)
+override LOADERS=
+override CPUUNITS=
+endif
+
+
 # Use new feature from 1.0.5 version
 # that generates release PPU files
 # which will not be recompiled
 ifdef RELEASE
 override FPCOPT+=-Ur
 endif
-
-override FPCOPT+= -dHASUNIX -n -dFPC_USE_LIBC -Si
+override FPCOPT+=-dFPC_USE_LIBC
 
 # Paths
 OBJPASDIR=$(RTL)/objpas