summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-08-08 05:19:12 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-08-09 11:35:27 -0500
commitb8e3deb07d09f700026a37e4f887f20fae2bd93e (patch)
tree445d37425105d2429cf8096223e4d20a0374538d
parentf7e3c7c8859cc25a1701507ed0f656cc38a2a550 (diff)
Install unversioned import library on Cygwin/MinGW
Using LN_S is required for portability; on MinGW, this is "cp -p". The install-exec-hook in src/Makefile.am must remain !PLATFORM_WIN32, as Windows cannot resolve DLL runtime dependencies from symlinks. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac1
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 412aefc..5eed6e3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,10 +31,8 @@ EXTRA_DIST = \
old-doc/Changelog \
old-doc/CHANGES
-if !PLATFORM_WIN32
install-exec-hook:
- cd $(DESTDIR)$(libdir) && rm -f libXaw.@LIBEXT@ && ln -s $(DEFAULT_LIB) libXaw.@LIBEXT@
-endif
+ cd $(DESTDIR)$(libdir) && rm -f libXaw.@LIBEXT@ && $(LN_S) $(DEFAULT_LIB) libXaw.@LIBEXT@
.PHONY: ChangeLog INSTALL
diff --git a/configure.ac b/configure.ac
index 84f21d4..47f2215 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,7 @@ platform_darwin=no
LIBEXT=so
case $host_os in
cygwin*|mingw*)
+ LIBEXT=dll.a
platform_win32=yes
;;
darwin*)