Просмотр исходного кода

--- Merging r22069 into '.':
U rtl/unix/dos.pp
--- Merging r22156 into '.':
U utils/instantfpc/Makefile.fpc
C utils/instantfpc/Makefile
Summary of conflicts:
Text conflicts: 1

# revisions: 22069,22156
r22069 | marco | 2012-08-13 12:14:07 +0200 (Mon, 13 Aug 2012) | 2 lines
Changed paths:
M /trunk/rtl/unix/dos.pp

* add platform modifiers to all locally defined functions in unix' dos unit.
r22156 | marco | 2012-08-21 13:43:28 +0200 (Tue, 21 Aug 2012) | 1 line
Changed paths:
M /trunk/utils/instantfpc/Makefile
M /trunk/utils/instantfpc/Makefile.fpc

- Add fpcpackage=y to install section to install in proper dir. Mantis #22549

git-svn-id: branches/fixes_2_6@22305 -

marco 13 лет назад
Родитель
Сommit
fbeb48674d
3 измененных файлов с 36 добавлено и 6 удалено
  1. 4 4
      rtl/unix/dos.pp
  2. 29 2
      utils/instantfpc/Makefile
  3. 3 0
      utils/instantfpc/Makefile.fpc

+ 4 - 4
rtl/unix/dos.pp

@@ -47,12 +47,12 @@ Type
 {$i dosh.inc}
 {$i dosh.inc}
 
 
 {Extra Utils}
 {Extra Utils}
-function weekday(y,m,d : longint) : longint;
-Procedure UnixDateToDt(SecsPast: LongInt; Var Dt: DateTime);
-Function  DTToUnixDate(DT: DateTime): LongInt;
+function weekday(y,m,d : longint) : longint; platform;
+Procedure UnixDateToDt(SecsPast: LongInt; Var Dt: DateTime); platform;
+Function  DTToUnixDate(DT: DateTime): LongInt; platform;
 
 
 {Disk}
 {Disk}
-Function AddDisk(const path:string) : byte;
+Function AddDisk(const path:string) : byte; platform;
 
 
 Implementation
 Implementation
 
 

+ 29 - 2
utils/instantfpc/Makefile

@@ -1,8 +1,8 @@
 #
 #
-# Don't edit, this file is generated by FPCMake Version 2.0.0 [2011/12/30]
+# Don't edit, this file is generated by FPCMake Version 2.0.0 [2012/06/26]
 #
 #
 default: all
 default: all
-MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-solaris x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded mipsel-linux
+MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded mipsel-linux
 BSDs = freebsd netbsd openbsd darwin
 BSDs = freebsd netbsd openbsd darwin
 UNIXs = linux $(BSDs) solaris qnx haiku
 UNIXs = linux $(BSDs) solaris qnx haiku
 LIMIT83fs = go32v2 os2 emx watcom
 LIMIT83fs = go32v2 os2 emx watcom
@@ -420,9 +420,15 @@ endif
 ifeq ($(FULL_TARGET),x86_64-freebsd)
 ifeq ($(FULL_TARGET),x86_64-freebsd)
 override TARGET_PROGRAMS+=instantfpc
 override TARGET_PROGRAMS+=instantfpc
 endif
 endif
+ifeq ($(FULL_TARGET),x86_64-netbsd)
+override TARGET_PROGRAMS+=instantfpc
+endif
 ifeq ($(FULL_TARGET),x86_64-solaris)
 ifeq ($(FULL_TARGET),x86_64-solaris)
 override TARGET_PROGRAMS+=instantfpc
 override TARGET_PROGRAMS+=instantfpc
 endif
 endif
+ifeq ($(FULL_TARGET),x86_64-openbsd)
+override TARGET_PROGRAMS+=instantfpc
+endif
 ifeq ($(FULL_TARGET),x86_64-darwin)
 ifeq ($(FULL_TARGET),x86_64-darwin)
 override TARGET_PROGRAMS+=instantfpc
 override TARGET_PROGRAMS+=instantfpc
 endif
 endif
@@ -609,9 +615,15 @@ endif
 ifeq ($(FULL_TARGET),x86_64-freebsd)
 ifeq ($(FULL_TARGET),x86_64-freebsd)
 override CLEAN_UNITS+=instantfptools
 override CLEAN_UNITS+=instantfptools
 endif
 endif
+ifeq ($(FULL_TARGET),x86_64-netbsd)
+override CLEAN_UNITS+=instantfptools
+endif
 ifeq ($(FULL_TARGET),x86_64-solaris)
 ifeq ($(FULL_TARGET),x86_64-solaris)
 override CLEAN_UNITS+=instantfptools
 override CLEAN_UNITS+=instantfptools
 endif
 endif
+ifeq ($(FULL_TARGET),x86_64-openbsd)
+override CLEAN_UNITS+=instantfptools
+endif
 ifeq ($(FULL_TARGET),x86_64-darwin)
 ifeq ($(FULL_TARGET),x86_64-darwin)
 override CLEAN_UNITS+=instantfptools
 override CLEAN_UNITS+=instantfptools
 endif
 endif
@@ -666,6 +678,7 @@ endif
 ifeq ($(FULL_TARGET),mipsel-linux)
 ifeq ($(FULL_TARGET),mipsel-linux)
 override CLEAN_UNITS+=instantfptools
 override CLEAN_UNITS+=instantfptools
 endif
 endif
+override INSTALL_FPCPACKAGE=y
 ifeq ($(FULL_TARGET),i386-linux)
 ifeq ($(FULL_TARGET),i386-linux)
 override COMPILER_OPTIONS+=-S2h
 override COMPILER_OPTIONS+=-S2h
 endif
 endif
@@ -798,9 +811,15 @@ endif
 ifeq ($(FULL_TARGET),x86_64-freebsd)
 ifeq ($(FULL_TARGET),x86_64-freebsd)
 override COMPILER_OPTIONS+=-S2h
 override COMPILER_OPTIONS+=-S2h
 endif
 endif
+ifeq ($(FULL_TARGET),x86_64-netbsd)
+override COMPILER_OPTIONS+=-S2h
+endif
 ifeq ($(FULL_TARGET),x86_64-solaris)
 ifeq ($(FULL_TARGET),x86_64-solaris)
 override COMPILER_OPTIONS+=-S2h
 override COMPILER_OPTIONS+=-S2h
 endif
 endif
+ifeq ($(FULL_TARGET),x86_64-openbsd)
+override COMPILER_OPTIONS+=-S2h
+endif
 ifeq ($(FULL_TARGET),x86_64-darwin)
 ifeq ($(FULL_TARGET),x86_64-darwin)
 override COMPILER_OPTIONS+=-S2h
 override COMPILER_OPTIONS+=-S2h
 endif
 endif
@@ -1625,10 +1644,18 @@ ifeq ($(FULL_TARGET),x86_64-freebsd)
 REQUIRE_PACKAGES_RTL=1
 REQUIRE_PACKAGES_RTL=1
 REQUIRE_PACKAGES_FCL-PROCESS=1
 REQUIRE_PACKAGES_FCL-PROCESS=1
 endif
 endif
+ifeq ($(FULL_TARGET),x86_64-netbsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_FCL-PROCESS=1
+endif
 ifeq ($(FULL_TARGET),x86_64-solaris)
 ifeq ($(FULL_TARGET),x86_64-solaris)
 REQUIRE_PACKAGES_RTL=1
 REQUIRE_PACKAGES_RTL=1
 REQUIRE_PACKAGES_FCL-PROCESS=1
 REQUIRE_PACKAGES_FCL-PROCESS=1
 endif
 endif
+ifeq ($(FULL_TARGET),x86_64-openbsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_FCL-PROCESS=1
+endif
 ifeq ($(FULL_TARGET),x86_64-darwin)
 ifeq ($(FULL_TARGET),x86_64-darwin)
 REQUIRE_PACKAGES_RTL=1
 REQUIRE_PACKAGES_RTL=1
 REQUIRE_PACKAGES_FCL-PROCESS=1
 REQUIRE_PACKAGES_FCL-PROCESS=1

+ 3 - 0
utils/instantfpc/Makefile.fpc

@@ -6,6 +6,9 @@
 name=instantfpc
 name=instantfpc
 version=2.6.1
 version=2.6.1
 
 
+[install]
+fpcpackage=y
+
 [require]
 [require]
 packages=fcl-process
 packages=fcl-process