在 2025-02-16 20:27, Kirill Makurin 写道:
+# Handle -lpthread alias when installing
+install-exec-hook:
+ . $(builddir)/libwinpthread.la; \
+ if test -n "$${library_names}"; then \
+ alias=$$(printf %s "$${library_names}" | $(SED)
's|winpthread|pthread|'); \
+ $(INSTALL_DATA) $(DESTDIR)$(libdir)/$${library_names}
$(DESTDIR)$(libdir)/$${alias}; \
+ fi; \
+ if test -n "$${old_library}"; then \
+ alias=$$(printf %s "$${old_library}" | $(SED)
's|winpthread|pthread|'); \
+ $(INSTALL_DATA) $(DESTDIR)$(libdir)/$${old_library}
$(DESTDIR)$(libdir)/$${alias}; \
+ fi
These are shell commands, so I suspect `;\` is unnecessary?
Also instead of `printf %s "$${library_names}"` you can use `echo
"$${library_names}"`.
--
Best regards,
LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
