Open adr-adr opened 7 months ago
Hi, I'm making a pkgsrc port of the last release. Can you take a look at these small patches? Thanks.
============================================= --- Makefile.orig 2019-12-17 16:05:14.000000000 +0000 +++ Makefile @@ -4,7 +4,7 @@ VERSION=3.3 # To test strict C ANSI compliance -CC = gcc -ansi -pedantic +CC ?= gcc -ansi -pedantic LIB= -lm # This allow you to write commands like "make PURE=purify demo1" @@ -26,7 +26,7 @@ CCPURE = $(PURE) $(CC) # If endianess of your machine is not automatically detected in Misc/common.h # you should manually specify here -CFLAGS += -DLITTLE_ENDIAN +#CFLAGS += -DLITTLE_ENDIAN #CFLAGS += -DBIG_ENDIAN ####################### ============================================= --- Misc/common.h.orig 2019-12-17 16:05:14.000000000 +0000 +++ Misc/common.h @@ -70,11 +70,11 @@ void swab( const char *from, char *to, int nbytes); #endif -#if defined(__GLIBC__) +#if defined(__GLIBC__) || defined(TARGET_OS_NETBSD) #include <endian.h> #undef BIG_ENDIAN #undef LITTLE_ENDIAN -#if __BYTE_ORDER == __LITTLE_ENDIAN +#if __BYTE_ORDER == __LITTLE_ENDIAN || _BYTE_ORDER == _LITTLE_ENDIAN # define LITTLE_ENDIAN #else # define BIG_ENDIAN
@adr-adr, can you provide it as proper patch file or merge request?
Sure. mbrola_pkgsrc_patches.tgz
Hi, I'm making a pkgsrc port of the last release. Can you take a look at these small patches? Thanks.