1dec8ef
--- api/avahi/src/Makefile.orig	2020-05-12 00:35:36.000000000 -0600
1dec8ef
+++ api/avahi/src/Makefile	2020-05-14 11:32:56.828004978 -0600
8eacd3b
@@ -47,9 +47,9 @@ CEFLAGS		=
e935afc
 
e935afc
 # Additional pthread lib for C
e935afc
 ifeq "$(AVAHILIBS) " " "
e935afc
-EXTRALIBS	= 
e935afc
+EXTRALIBS	= $(PTHREADLIBS)
e935afc
 else
8eacd3b
-EXTRALIBS	= $(AVAHILIBS) $(GCCLOSELIB)
8eacd3b
+EXTRALIBS	= $(AVAHILIBS) $(GCCLOSELIB) $(PTHREADLIBS)
8eacd3b
 EXTRALIBS_S	= -lbigloopthread_s-$(RELEASE)
8eacd3b
 EXTRALIBS_U	= -lbigloopthread_u-$(RELEASE)
e935afc
 endif
1dec8ef
--- api/pkglib/src/Makefile.orig	2020-05-12 00:35:36.000000000 -0600
1dec8ef
+++ api/pkglib/src/Makefile	2020-05-14 11:32:56.829004976 -0600
e935afc
@@ -45,8 +45,8 @@ SPIFLAGS	=
e935afc
 BMISCFLAGS	= -I Llib
e935afc
 
e935afc
 # Extra libs
e935afc
-EXTRALIBS_S	= -lbigloosqlite_s-$(RELEASE)
e935afc
-EXTRALIBS_U	= -lbigloosqlite_u-$(RELEASE)
e935afc
+EXTRALIBS_S	= -lbigloosqlite_s-$(RELEASE) $(SQLITELIBS)
e935afc
+EXTRALIBS_U	= -lbigloosqlite_u-$(RELEASE) $(SQLITELIBS)
e935afc
 
e935afc
 #*---------------------------------------------------------------------*/
e935afc
 #*    Scheme extended objects                                          */
1dec8ef
--- Makefile.misc.orig	2020-05-12 00:35:36.000000000 -0600
1dec8ef
+++ Makefile.misc	2020-05-14 11:32:56.831004970 -0600
e935afc
@@ -89,8 +89,8 @@ shared-install-name:
e935afc
                  $(OBJECTS) \
e935afc
                  $(GCSTDOBJECTS) \
e935afc
                  $(LDFLAGS) $(EXTRA_LD_OPT) \
e935afc
-                 $(EXTRALIBS) $(CLOSELIBS) \
e935afc
-                 $(LDLIBS) $(LDOPTS) $(LDEXTRA) && \
e935afc
+                 $(CLOSELIBS) \
e935afc
+                 $(LDLIBS) $(LDOPTS) $(LDEXTRA) $(EXTRALIBS) && \
e935afc
          if [ "$(notdir $(LIBDEST))" != "$(LIBDEST)" ]; then \
e935afc
            mv $(notdir $(LIBDEST)) $(LIBDEST); \
e935afc
          fi
e935afc
@@ -102,8 +102,8 @@ MS-CARE-shared-install-name:
e935afc
                  $(OBJECTS) \
e935afc
                  $(GCSTDOBJECTS) \
e935afc
                  $(LDFLAGS) $(EXTRA_LD_OPT) \
e935afc
-                 $(EXTRALIBS) $(CLOSELIBS) \
e935afc
-                 $(LDLIBS) $(LDOPTS) $(LDEXTRA) && \
e935afc
+                 $(CLOSELIBS) \
e935afc
+                 $(LDLIBS) $(LDOPTS) $(LDEXTRA) $(EXTRALIBS) && \
e935afc
          if [ "$(notdir $(LIBDEST))" != "$(LIBDEST)" ]; then \
e935afc
            mv $(notdir $(LIBDEST)) $(LIBDEST); \
e935afc
          fi
e935afc
@@ -113,9 +113,9 @@ shared-sans-soname:
e935afc
                  $(LDRPATH) \
e935afc
                  $(OBJECTS) \
e935afc
                  $(GCSTDOBJECTS) \
e935afc
-                 $(LDFLAGS) \
e935afc
-                 $(EXTRALIBS) $(CLOSELIBS) \
e935afc
-                 $(LDLIBS) $(LDOPTS) $(EXTRA_LD_OPT) $(LDEXTRA) && \
e935afc
+                 $(LDFLAGS) $(EXTRA_LD_OPT) \
e935afc
+                 $(CLOSELIBS) \
e935afc
+                 $(LDLIBS) $(LDOPTS) $(LDEXTRA) $(EXTRALIBS) && \
e935afc
          if [ "$(notdir $(LIBDEST))" != "$(LIBDEST)" ]; then \
e935afc
            mv $(notdir $(LIBDEST)) $(LIBDEST); \
e935afc
          fi
e935afc
@@ -127,8 +127,8 @@ shared-soname:
e935afc
                  $(OBJECTS) \
e935afc
                  $(GCSTDOBJECTS) \
e935afc
                  $(LDOPTS) $(EXTRA_LD_OPT) \
e935afc
-                 $(EXTRALIBS) $(CLOSELIBS) \
e935afc
-                 $(LDLIBS) $(LDFLAGS) $(LDEXTRA) && \
e935afc
+                 $(CLOSELIBS) \
e935afc
+                 $(LDLIBS) $(LDFLAGS) $(LDEXTRA) $(EXTRALIBS) && \
e935afc
          if [ "$(notdir $(LIBDEST))" != "$(LIBDEST)" ]; then \
e935afc
            mv $(notdir $(LIBDEST)) $(LIBDEST); \
e935afc
          fi