summaryrefslogtreecommitdiff
path: root/make/calcdep.pl
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-28 02:21:43 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-28 02:21:43 +0000
commitd811ffeda29eff11fb0a381f5f17b6d65ae0460b (patch)
tree7809871bac4ba191a52dfb5dc8da312d28cf18e3 /make/calcdep.pl
parent7c1509e0a79ede51146d38469e63c1437f2d4907 (diff)
Fix linking errors on BSD
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11774 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/calcdep.pl')
-rwxr-xr-xmake/calcdep.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/calcdep.pl b/make/calcdep.pl
index 1c5baeded..ad25875cf 100755
--- a/make/calcdep.pl
+++ b/make/calcdep.pl
@@ -73,7 +73,7 @@ END
print MAKE <<END;
bin/inspircd: $core_mk
- \$(RUNCC) -o \$\@ \$(CORELDFLAGS) \$(LDLIBS) \$^
+ cd \$(BUILDPATH); \$(RUNCC) -o \$\@ \$(CORELDFLAGS) \$(LDLIBS) \$^ \$>
inspircd: bin/inspircd
modules: $mods
@@ -154,7 +154,7 @@ sub dep_dir($) {
closedir DIR;
if (@ofiles) {
my $ofiles = join ' ', @ofiles;
- print MAKE "$dir.so: $ofiles\n\t\$(RUNCC) \$(PICLDFLAGS) -o \$\@ \$^\n";
+ print MAKE "$dir.so: $ofiles\n\tcd \$(BUILDPATH); \$(RUNCC) \$(PICLDFLAGS) -o \$\@ \$^ \$>\n";
return 1;
} else {
return 0;