depot/third_party/nixpkgs/pkgs/development/libraries/libpfm/fix-windows.patch
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

18 lines
542 B
Diff

diff --git a/lib/Makefile b/lib/Makefile
index 5ca71e3..cd0717f 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -428,11 +428,13 @@ install:
-mkdir -p $(DESTDIR)$(LIBDIR)
$(INSTALL) -m 644 $(ALIBPFM) $(DESTDIR)$(LIBDIR)
ifeq ($(CONFIG_PFMLIB_SHARED),y)
+ifeq ($(SYS),Linux)
$(INSTALL) $(SLIBPFM) $(DESTDIR)$(LIBDIR)
cd $(DESTDIR)$(LIBDIR); $(LN) $(SLIBPFM) $(VLIBPFM)
cd $(DESTDIR)$(LIBDIR); $(LN) $(SLIBPFM) libpfm.$(SOLIBEXT)
-$(LDCONFIG)
endif
+endif
tags:
$(CTAGS) -o $(TOPDIR)/tags --tag-relative=yes $(SRCS) $(INCDEP)