*** Makefile.orig	Wed Oct  9 15:00:45 2019
--- Makefile	Wed Oct  9 15:02:59 2019
***************
*** 487,500 ****
  OPTIONS_CFLAGS += -DCONFIG_REGPARM=3
  endif
  
- ifneq ($(USE_DL),)
- OPTIONS_LDFLAGS += -ldl
- endif
- 
- ifneq ($(USE_THREAD),)
- OPTIONS_LDFLAGS += -lpthread
- endif
- 
  ifneq ($(USE_RT),)
  OPTIONS_LDFLAGS += -lrt
  endif
--- 487,492 ----
***************
*** 707,712 ****
--- 699,713 ----
  OPTIONS_OBJS  += src/namespace.o
  endif
  
+ ifneq ($(USE_DL),)
+ OPTIONS_LDFLAGS += -ldl
+ endif
+ 
+ ifneq ($(USE_THREAD),)
+ OPTIONS_LDFLAGS += -lpthread
+ endif
+ 
+ 
  #### Global link options
  # These options are added at the end of the "ld" command line. Use LDFLAGS to
  # add options at the beginning of the "ld" command line if needed.
