|
@@ -941,9 +941,7 @@ implementation
|
|
|
Replace(s,'$FPCDATE',date_string);
|
|
|
Replace(s,'$FPCCPU',target_cpu_string);
|
|
|
Replace(s,'$FPCOS',target_os_string);
|
|
|
-{$ifndef darwin}
|
|
|
- Replace(s,'$FPCBINDIR',ExtractFilePath(FixFileName(system.paramstr(0))));
|
|
|
-{$endif}
|
|
|
+ Replace(s,'$FPCBINDIR',ExtractFilePath(exepath));
|
|
|
if (tf_use_8_3 in Source_Info.Flags) or
|
|
|
(tf_use_8_3 in Target_Info.Flags) then
|
|
|
Replace(s,'$FPCTARGET',target_os_string)
|