diff --git a/lcl/Makefile.fpc b/lcl/Makefile.fpc index 931ad2ce76..7920ff04eb 100644 --- a/lcl/Makefile.fpc +++ b/lcl/Makefile.fpc @@ -24,6 +24,11 @@ rsts=dialogs [require] packages=fcl +[prerules] +ifneq ($(OS_TARGET),win32) +override COMPILER_UNITDIR+=lcl/nonwin32 +endif + [compiler] options=-gl unittargetdir=units