Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-01

double compiler commands problem found

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Vreman

The problem is the line "export FPCOPT" in lazarus/Makefile.fpc. FPCOPT is a local variable that should not be exported, because all commandline options are added to this variable and it is never reset. When you export it you include the old commandline options also when another $(MAKE) call is done from the Makefile, which is the case under win32, see the ide target

Reply by email

Keith Bowes
to Peter Vreman

From: "Peter Vreman" :

Show quoted text 8 lines
The problem is the line "export FPCOPT" in lazarus/Makefile.fpc. FPCOPT is a local variable that should not be exported, because all commandline options are added to this variable and it is never reset. When you export it you include the old commandline options also when another $(MAKE) call is done from the Makefile, which is the case under win32, see the ide target

Thanks, I fixed the problem. As a side effect, now the resource always gets linked in on Win32, not just when it's compiled with the win32 interface.

Keith

Reply by email