diff -Nru fpc-3.0.4+dfsg/debian/changelog fpc-3.0.4+dfsg/debian/changelog --- fpc-3.0.4+dfsg/debian/changelog 2018-04-22 14:10:23.000000000 +0000 +++ fpc-3.0.4+dfsg/debian/changelog 2018-05-02 04:16:09.000000000 +0000 @@ -1,3 +1,10 @@ +fpc (3.0.4+dfsg-18+rpi1) buster-staging; urgency=medium + + [changes brought forward from 2.6.4+dfsg-4+rpi1 by Peter Michael Green at Mon, 20 Oct 2014 23:12:17 +0000] + * Set compiler defaults for raspbian. + + -- Raspbian forward porter Wed, 02 May 2018 04:16:09 +0000 + fpc (3.0.4+dfsg-18) unstable; urgency=medium * Remove dpkg-architecture calls to reduce build time and lintian warnings diff -Nru fpc-3.0.4+dfsg/debian/patches/raspbian.diff fpc-3.0.4+dfsg/debian/patches/raspbian.diff --- fpc-3.0.4+dfsg/debian/patches/raspbian.diff 1970-01-01 00:00:00.000000000 +0000 +++ fpc-3.0.4+dfsg/debian/patches/raspbian.diff 2018-05-02 04:16:08.000000000 +0000 @@ -0,0 +1,56 @@ +Description: Change compiler defaults for raspbian + We need armv6 and vfpv2 rather than armv7 and vfpv3-d16 +Author: Peter Michael Green + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +Index: fpc-3.0.0+dfsg/fpcsrc/compiler/options.pas +=================================================================== +--- fpc-3.0.0+dfsg.orig/fpcsrc/compiler/options.pas ++++ fpc-3.0.0+dfsg/fpcsrc/compiler/options.pas +@@ -3692,7 +3692,8 @@ begin + begin + if not(option.FPUSetExplicitly) then + begin +- init_settings.fputype:=fpu_vfpv3_d16 ++ //RPI -- reduce default fpu to vfpv2 ++ init_settings.fputype:=fpu_vfpv2 + end + else + begin +@@ -3729,10 +3730,9 @@ begin + end; + end; + +-{ set default cpu type to ARMv7a for ARMHF unless specified otherwise } ++{ set default cpu type to ARMv6 for Raspbian unless specified otherwise } + if (target_info.abi = abi_eabihf) then + begin +-{$ifdef CPUARMV6} + { if the compiler is built for armv6, then + inherit this setting, e.g. Raspian is armhf but + only armv6, this makes rebuilds of the compiler +@@ -3741,12 +3741,6 @@ if (target_info.abi = abi_eabihf) then + init_settings.cputype:=cpu_armv6; + if not option.OptCPUSetExplicitly then + init_settings.optimizecputype:=cpu_armv6; +-{$else CPUARMV6} +- if not option.CPUSetExplicitly then +- init_settings.cputype:=cpu_armv7a; +- if not option.OptCPUSetExplicitly then +- init_settings.optimizecputype:=cpu_armv7a; +-{$endif CPUARMV6} + end; + + if (init_settings.instructionset=is_thumb) and not(CPUARM_HAS_THUMB2 in cpu_capabilities[init_settings.cputype]) then diff -Nru fpc-3.0.4+dfsg/debian/patches/series fpc-3.0.4+dfsg/debian/patches/series --- fpc-3.0.4+dfsg/debian/patches/series 2018-04-15 14:59:01.000000000 +0000 +++ fpc-3.0.4+dfsg/debian/patches/series 2018-05-02 04:16:09.000000000 +0000 @@ -31,3 +31,4 @@ fix_make_files_generation.patch fix-IDE-GDB-support.patch clean_man_pages.patch +raspbian.diff