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

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/devel/py-pyvex/patches/patch-pyvex__c_Makefile between version 1.2 and 1.3

version 1.2, 2020/01/09 14:02:32 version 1.3, 2020/08/18 20:24:58
Line 1 
Line 1 
 $NetBSD$  $NetBSD$
   
 Add support for NetBSD.  Append to LDFLAGS rather than replacing it.
 Correct the syntax for GCC in C99 mode.  
   
 --- pyvex_c/Makefile.orig       2019-12-17 03:13:10.000000000 +0000  --- pyvex_c/Makefile.orig       2020-07-28 02:00:38.000000000 +0000
 +++ pyvex_c/Makefile  +++ pyvex_c/Makefile
 @@ -2,22 +2,27 @@ UNAME := $(shell uname)  @@ -2,22 +2,22 @@ UNAME := $(shell uname)
  ifeq ($(UNAME), Darwin)   ifeq ($(UNAME), Darwin)
         LIBRARY_FILE=libpyvex.dylib          LIBRARY_FILE=libpyvex.dylib
         STATIC_LIBRARY_FILE=libpyvex.a          STATIC_LIBRARY_FILE=libpyvex.a
 -       LDFLAGS=-Wl,-install_name,$(LIBRARY_FILE)  -       LDFLAGS=-Wl,-install_name,@rpath/$(LIBRARY_FILE)
 +       LDFLAGS+=-Wl,-install_name,$(LIBRARY_FILE)  +       LDFLAGS+=-Wl,-install_name,@rpath/$(LIBRARY_FILE)
  endif   endif
  ifeq ($(UNAME), Linux)   ifeq ($(UNAME), Linux)
         LIBRARY_FILE=libpyvex.so          LIBRARY_FILE=libpyvex.so
Line 23  Correct the syntax for GCC in C99 mode.
Line 22  Correct the syntax for GCC in C99 mode.
         STATIC_LIBRARY_FILE=libpyvex.a          STATIC_LIBRARY_FILE=libpyvex.a
 -       LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)  -       LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
 +       LDFLAGS+=-Wl,-soname,$(LIBRARY_FILE)  +       LDFLAGS+=-Wl,-soname,$(LIBRARY_FILE)
 +endif  
 +ifeq ($(UNAME), NetBSD)  
 +       LIBRARY_FILE=libpyvex.so  
 +       STATIC_LIBRARY_FILE=libpyvex.a  
 +       LDFLAGS+=-Wl,-soname,$(LIBRARY_FILE)  
  endif   endif
  ifeq ($(findstring MINGW,$(UNAME)), MINGW)   ifeq ($(findstring MINGW,$(UNAME)), MINGW)
         LIBRARY_FILE=pyvex.dll          LIBRARY_FILE=pyvex.dll

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>