* Figure out the extension of dynamic libraries; don't hard-code .so.
This commit is contained in:
		
							parent
							
								
									9fe24c5a0d
								
							
						
					
					
						commit
						f86fca9b70
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		|  | @ -332,6 +332,11 @@ if test "$(uname)" = "Darwin"; then | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | # Figure out the extension of dynamic libraries. | ||||||
|  | eval dynlib_suffix=$shrext_cmds | ||||||
|  | AC_SUBST(dynlib_suffix) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| AM_CONFIG_HEADER([config.h]) | AM_CONFIG_HEADER([config.h]) | ||||||
| AC_CONFIG_FILES([Makefile | AC_CONFIG_FILES([Makefile | ||||||
|    externals/Makefile |    externals/Makefile | ||||||
|  |  | ||||||
|  | @ -3,13 +3,13 @@ PERL_MODULES = lib/Nix/Store.pm lib/Nix/Manifest.pm lib/Nix/GeneratePatches.pm l | ||||||
| # Hack required by "make check". | # Hack required by "make check". | ||||||
| all: $(PERL_MODULES:.in=) | all: $(PERL_MODULES:.in=) | ||||||
| 	mkdir -p lib/auto/Nix/Store | 	mkdir -p lib/auto/Nix/Store | ||||||
| 	ln -sfn $(abs_builddir)/.libs/libNixStore.so lib/auto/Nix/Store/Store.so | 	ln -sfn $(abs_builddir)/.libs/libNixStore$(dynlib_suffix) lib/auto/Nix/Store/Store$(dynlib_suffix) | ||||||
| 
 | 
 | ||||||
| install-exec-local: $(PERL_MODULES:.in=) | install-exec-local: $(PERL_MODULES:.in=) | ||||||
| 	$(INSTALL) -d $(DESTDIR)$(perllibdir)/Nix | 	$(INSTALL) -d $(DESTDIR)$(perllibdir)/Nix | ||||||
| 	$(INSTALL_DATA) $(PERL_MODULES:.in=) $(DESTDIR)$(perllibdir)/Nix | 	$(INSTALL_DATA) $(PERL_MODULES:.in=) $(DESTDIR)$(perllibdir)/Nix | ||||||
| 	$(INSTALL) -d $(DESTDIR)$(perllibdir)/auto/Nix/Store | 	$(INSTALL) -d $(DESTDIR)$(perllibdir)/auto/Nix/Store | ||||||
| 	ln -sfn $(pkglibdir)/libNixStore.so $(DESTDIR)$(perllibdir)/auto/Nix/Store/Store.so | 	ln -sfn $(pkglibdir)/libNixStore$(dynlib_suffix) $(DESTDIR)$(perllibdir)/auto/Nix/Store/Store$(dynlib_suffix) | ||||||
| 
 | 
 | ||||||
| # Awful hackery to get libtool to build Perl XS bindings. | # Awful hackery to get libtool to build Perl XS bindings. | ||||||
| pkglib_LTLIBRARIES = libNixStore.la | pkglib_LTLIBRARIES = libNixStore.la | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue