Skip to content

Commit

Permalink
replace GSL_* config with env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Oct 25, 2024
1 parent 092ffc0 commit 41d0901
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 4 additions & 9 deletions Libtmp/GSL/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ sub get_gsl_config {

# the real stuff happens in the subdirs
sub get_gsl_libs {
warn << 'EOW' if ref $PDL::Config{GSL_LIBS};
The GSL_LIBS config variable must be a string (!)
not a reference. You should probably leave it undefined
and rely on gsl-config. Build will likely fail.
EOW
my $lib = ($PDL::Config{GSL_LIBS} or
get_gsl_config('--libs') or
my $lib = ($ENV{GSL_LIBS} ||
get_gsl_config('--libs') ||
warn "\tno GSL link info (libgsl probably not available)\n");
my $inc = ($PDL::Config{GSL_INC} or
get_gsl_config('--cflags') or
my $inc = ($ENV{GSL_INC} ||
get_gsl_config('--cflags') ||
warn "\tno GSL include info (libgsl probably not available)\n\n");
chomp $lib; chomp $inc;
return ($inc,$lib);
Expand Down
6 changes: 0 additions & 6 deletions perldl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@
# libs => '-lefence',
# define => '',
# },

# Link flags for the GSL libs, e.g. '-L/usr/local/lib -lgsl -lm'
GSL_LIBS => undef, # use gsl-config

# Location to find GSL includes:
GSL_INC => undef, # use gsl-config
);

1; # Return OK status on 'require'

0 comments on commit 41d0901

Please sign in to comment.