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.
This commit is contained in:
parent
2c9b5b98c0
commit
575b6fb570
2
Makefile
2
Makefile
@ -231,7 +231,7 @@ install-shared: $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER) install-header
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user