Skip to content

Commit

Permalink
Merge pull request #183 from usev6/master
Browse files Browse the repository at this point in the history
Fix parrot build problem on NetBSD (building of dyncall failed)
  • Loading branch information
FROGGS committed Sep 19, 2014
2 parents 1f0d522 + 008f60c commit 4c831a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 7 additions & 1 deletion 3rdparty/dyncall/configure
Expand Up @@ -47,7 +47,13 @@ case ${TARGET:=`uname`} in
fi
printf "LDFLAGS=-lm -ldl\n" >>$C
;;
OpenBSD|NetBSD)
OpenBSD)
printf "LDFLAGS=-lm\n" >>$C
;;
NetBSD)
if [ -z "${CFLAGS}" ]; then
printf "CFLAGS=-fPIC\n" >>$C
fi
printf "LDFLAGS=-lm\n" >>$C
;;
FreeBSD)
Expand Down
7 changes: 1 addition & 6 deletions Configure.pl
Expand Up @@ -179,12 +179,7 @@
$config{'dyncall_build'} = "cd 3rdparty/dyncall && $make BUILD_DIR=. -f Makefile.embedded mingw32";
} else {
system_or_die('cd 3rdparty/dyncall && sh configure');

if ($^O eq 'netbsd') {
$config{'dyncall_build'} = "cd 3rdparty/dyncall && BUILD_DIR=. $make -f BSDmakefile";
} else {
$config{'dyncall_build'} = "cd 3rdparty/dyncall && BUILD_DIR=. $make";
}
$config{'dyncall_build'} = "cd 3rdparty/dyncall && BUILD_DIR=. $make";
}
}

Expand Down

0 comments on commit 4c831a3

Please sign in to comment.