Skip to content

Commit

Permalink
Add -fPIC to DFLAGS. This is necessary to avoid issues with statics. (#…
Browse files Browse the repository at this point in the history
…16362)

modified:   compiler/ini/freebsd/bin64/dmd.conf
  • Loading branch information
Don Allen authored Apr 7, 2024
1 parent e9c6884 commit 6d87e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/ini/freebsd/bin64/dmd.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Environment32]
DFLAGS=-I%@P%/../../src/phobos -I%@P%/../../src/druntime/import -L-L%@P%/../lib32 -L--export-dynamic
DFLAGS=-fPIC -I%@P%/../../src/phobos -I%@P%/../../src/druntime/import -L-L%@P%/../lib32 -L--export-dynamic

[Environment64]
DFLAGS=-I%@P%/../../src/phobos -I%@P%/../../src/druntime/import -L-L%@P%/../lib64 -L--export-dynamic
DFLAGS=-fPIC -I%@P%/../../src/phobos -I%@P%/../../src/druntime/import -L-L%@P%/../lib64 -L--export-dynamic

0 comments on commit 6d87e8c

Please sign in to comment.