Skip to content

Commit

Permalink
Fix compiling dynamic libs (which I broke in a4dbfff)
Browse files Browse the repository at this point in the history
  • Loading branch information
rversteegen authored and jayrm committed Jan 2, 2024
1 parent 638d680 commit d1629eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compiler/fbc.bas
Expand Up @@ -1000,7 +1000,11 @@ private function hLinkFiles( ) as integer
end if

if( fbGetOption( FB_COMPOPT_PIC ) ) then
ldcline += " -pie"
if( fbGetOption( FB_COMPOPT_OUTTYPE ) = FB_OUTTYPE_EXECUTABLE ) then
ldcline += " -pie"
else
'' Dynamic library: no flag needed
end if
end if

if( len( fbc.mapfile ) > 0) then
Expand Down

0 comments on commit d1629eb

Please sign in to comment.