Sign in Join

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

Mailing lists / lazarus / 2009-01

?Linker Option Bug?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Andrew Brunner

I recently had an issue with building and needed to pass the linker a -fPIC parameter. I went to Project/Compiler Options/Linking and added -fPIC parameter and put a check mark near the option to enable the linking options and still had the error.

I reported the issue as an FPC bug (
http://bugs.freepascal.org/view.php?id=12940 ) because I thought I had done all that I could to provide Linker with my option. The bug was reviewed (thanks Jonas :-) and it was suggested that I place the option in the "Other" tab under Custom Options... Which FIXED my Build Problem (thanks again Jonas ;-)

I recognize this is not a bug in FPC but I do think it is worth putting out here for consumption that even a newbie would have expected that best place to put a linking option would be on the Linking Tab, and that the phrase "Pass Options to the Linker" with a check box would be dead right.

I must confess that when I got the message during the build process I had "guessed" at first and expected to have fed the linker the suggested parameter.

Should I submit this issue as a bug to Lazarus so it gets worked in? Is this even a bug?

My thoughts are it should have passed that I should not have to enter the parameter in Other/options section but that the Linker tab would suffice. I don't know the inner workings and logic of progression form code to dynamic library on Linux completely so I will certainly defer here. But I am very curious on how all of these things work. Any feedback at all would be helpful and more than welcome.

Reply by email