diff --git a/fpcbuild/fpcsrc/compiler/utils/samplecfg b/fpcbuild/fpcsrc/compiler/utils/samplecfg index 592b8df23..f883a52b9 100644 --- a/fpcbuild/fpcsrc/compiler/utils/samplecfg +++ b/fpcbuild/fpcsrc/compiler/utils/samplecfg @@ -98,7 +98,8 @@ fi # Write fppkg.cfg echo Writing sample configuration file to $fppkgfile -${FPCMKCFGBIN} -p -3 -d "GlobalPrefix=$FPCGLOBALPREFIX" -d "GlobalPath=$FPCGLOBALPATH/{CompilerVersion}/" $compilerconfigdir -o $fppkgfile +${FPCMKCFGBIN} -p -3 -d "GlobalPrefix=$(getconf LIBDIR)/fpc" -d "GlobalPath=$(getconf LIBDIR)/fpc" $compilerconfigdir -o $fppkgfile +subst 's|/usr/src/tmp/fpc-buildroot||' $fppkgfile # Write default echo Writing sample configuration file to $defaultfile