ref: 575b6fb570817f83c6b9ea757f4413578785ef85
parent: 2c9b5b98c028bc6c8983269bb16f79fc9ad60846
author: Martin Storsjö <martin@martin.st>
date: Mon Dec 1 09:19:13 EST 2014
Check the suffix instead of checking whether a file is a link This feels more straightforward - some file systems/environments (such as MSys) implement symlinks as plain file copies, where distinguishing whether a file is a link might be hard.
--- a/Makefile
+++ b/Makefile
@@ -231,7 +231,7 @@
mkdir -p $(PREFIX)/lib
mkdir -p $(PREFIX)/bin
install -m 755 $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER) $(PREFIX)/lib
- if [ -L $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) ]; then \
+ if [ "$(SHAREDLIBSUFFIXVER)" != "$(SHAREDLIBSUFFIX)" ]; then \
cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) $(SHAREDLIB_DIR); \
fi
mkdir -p $(PREFIX)/lib/pkgconfig