diff -Nurd chmlib-0.40.orig/src/Makefile.in chmlib-0.40/src/Makefile.in --- chmlib-0.40.orig/src/Makefile.in 2009-05-23 11:12:23.000000000 -0400 +++ chmlib-0.40/src/Makefile.in 2024-01-20 02:24:41.000000000 -0500 @@ -300,7 +300,7 @@ rm -f "$${dir}/so_locations"; \ done libchm.la: $(libchm_la_OBJECTS) $(libchm_la_DEPENDENCIES) - $(LINK) -rpath $(libdir) $(libchm_la_OBJECTS) $(libchm_la_LIBADD) $(LIBS) + $(LINK) -rpath $(libdir) $(libchm_la_OBJECTS) $(libchm_la_LIBADD) $(LIBS) -no-undefined install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" diff -Nurd chmlib-0.40.orig/src/chm_lib.c chmlib-0.40/src/chm_lib.c --- chmlib-0.40.orig/src/chm_lib.c 2009-05-23 10:43:31.000000000 -0400 +++ chmlib-0.40/src/chm_lib.c 2024-01-20 02:25:05.000000000 -0500 @@ -181,9 +181,6 @@ /* GCC */ #ifdef __GNUC__ -#define memcmp __builtin_memcmp -#define memcpy __builtin_memcpy -#define strlen __builtin_strlen #elif defined(WIN32) static int ffs(unsigned int val) diff -Nurd chmlib-0.40.orig/src/lzx.c chmlib-0.40/src/lzx.c --- chmlib-0.40.orig/src/lzx.c 2009-05-23 10:43:31.000000000 -0400 +++ chmlib-0.40/src/lzx.c 2024-01-20 02:25:21.000000000 -0500 @@ -34,9 +34,6 @@ #include #include -#ifdef __GNUC__ -#define memcpy __builtin_memcpy -#endif /* sized types */ typedef unsigned char UBYTE; /* 8 bits exactly */