Skip to content

Commit

Permalink
enable shared library and PIC, fixes #1756
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Feb 8, 2024
1 parent d36c7e9 commit b758c78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion scripts/darwin/build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ sub run {
$jobs = 1;
}

my @options = ("-de", "-Dman1dir=none", "-Dman3dir=none");
my @options = (
"-de",
# omit man
"-Dman1dir=none", "-Dman3dir=none",
# enable shared library and PIC, fixes https://github.com/shogo82148/actions-setup-perl/issues/1756
"-Dcccdlflags=-fPIC", "-Duseshrplib",
);
if ($thread) {
# enable multi threading
push @options, "-Duseithreads";
Expand Down
8 changes: 7 additions & 1 deletion scripts/linux/build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ sub run {
$jobs = 1;
}

my @options = ("-de", "-Dman1dir=none", "-Dman3dir=none");
my @options = (
"-de",
# omit man
"-Dman1dir=none", "-Dman3dir=none",
# enable shared library and PIC, fixes https://github.com/shogo82148/actions-setup-perl/issues/1756
"-Dcccdlflags=-fPIC", "-Duseshrplib",
);
if ($thread) {
# enable multi threading
push @options, "-Duseithreads";
Expand Down

0 comments on commit b758c78

Please sign in to comment.