[BACK]Return to patch-pyvex__c_Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / py-pyvex / patches

Annotation of pkgsrc/devel/py-pyvex/patches/patch-pyvex__c_Makefile, Revision 1.2

1.2     ! wiz         1: $NetBSD: patch-pyvex__c_Makefile,v 1.1 2018/03/15 02:49:25 khorben Exp $
1.1       khorben     2:
                      3: Add support for NetBSD.
                      4: Correct the syntax for GCC in C99 mode.
                      5:
1.2     ! wiz         6: --- pyvex_c/Makefile.orig      2019-12-17 03:13:10.000000000 +0000
1.1       khorben     7: +++ pyvex_c/Makefile
1.2     ! wiz         8: @@ -2,22 +2,27 @@ UNAME := $(shell uname)
        !             9:  ifeq ($(UNAME), Darwin)
        !            10:        LIBRARY_FILE=libpyvex.dylib
1.1       khorben    11:        STATIC_LIBRARY_FILE=libpyvex.a
1.2     ! wiz        12: -      LDFLAGS=-Wl,-install_name,$(LIBRARY_FILE)
        !            13: +      LDFLAGS+=-Wl,-install_name,$(LIBRARY_FILE)
1.1       khorben    14:  endif
1.2     ! wiz        15:  ifeq ($(UNAME), Linux)
        !            16:        LIBRARY_FILE=libpyvex.so
        !            17:        STATIC_LIBRARY_FILE=libpyvex.a
        !            18: -      LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
        !            19: +      LDFLAGS+=-Wl,-soname,$(LIBRARY_FILE)
        !            20:  endif
        !            21:  ifeq ($(UNAME), NetBSD)
        !            22:        LIBRARY_FILE=libpyvex.so
        !            23:        STATIC_LIBRARY_FILE=libpyvex.a
        !            24: -      LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
        !            25: +      LDFLAGS+=-Wl,-soname,$(LIBRARY_FILE)
        !            26: +endif
1.1       khorben    27: +ifeq ($(UNAME), NetBSD)
                     28: +      LIBRARY_FILE=libpyvex.so
                     29: +      STATIC_LIBRARY_FILE=libpyvex.a
1.2     ! wiz        30: +      LDFLAGS+=-Wl,-soname,$(LIBRARY_FILE)
        !            31:  endif
1.1       khorben    32:  ifeq ($(findstring MINGW,$(UNAME)), MINGW)
                     33:        LIBRARY_FILE=pyvex.dll
                     34:        STATIC_LIBRARY_FILE=libpyvex.a
1.2     ! wiz        35: -      LDFLAGS=
        !            36: +      LDFLAGS+=
        !            37:  endif
1.1       khorben    38:
1.2     ! wiz        39:  # deeply evil

CVSweb <webmaster@jp.NetBSD.org>