diff options
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | make/utilities.pm | 8 |
2 files changed, 11 insertions, 2 deletions
@@ -1491,6 +1491,8 @@ HEADER $liflags = getlinkerflags("src/modules/m_".$i.".cpp"); $deps = getdependencies("src/modules/m_".$i.".cpp"); + #print "file: $i: cmflags=$cmflags; liflags=$liflags; deps=$deps\n"; + ### # Write Entry to the Makefile ### @@ -1564,6 +1566,9 @@ EOF $cmflags = getcompilerflags("src/modules/m_".$i.".cpp"); $liflags = getlinkerflags("src/modules/m_".$i.".cpp"); $deps = getdependencies("src/modules/m_".$i.".cpp"); + + #print "file: $i: cmflags=$cmflags; liflags=$liflags; deps=$deps\n"; + print FILEHANDLE <<EOCHEESE; m_$i.so: m_$i.cpp ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h ../../include/inspircd_config.h ../../include/inspircd.h ../../include/configreader.h $deps \$(CC) -pipe -I../../include \$(FLAGS) $cmflags -export-dynamic -c m_$i.cpp diff --git a/make/utilities.pm b/make/utilities.pm index fac0cb356..dc755c63f 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -123,9 +123,10 @@ sub pkgconfig_get_lib_dirs($$$;$) # to functions within these modules at configure time. sub translate_functions($$) { + my ($line,$module) = @_; + eval { - my ($line,$module) = @_; $module =~ /modules*\/(.+?)$/; $module = $1; @@ -185,13 +186,16 @@ sub translate_functions($$) my $replace = make_rpath($1,$module); $line =~ s/rpath\("(.+?)"\)/$replace/; } - return $line; }; if ($@) { print "\n\nConfiguration failed. The following error occured:\n\n$@\n"; exit; } + else + { + return $line; + } } 1; |