Browse Source

b/f: Need to link librt (on OS non-Darwin)

Carsten Bock 12 years ago
parent
commit
7f7e0d046c
3 changed files with 13 additions and 2 deletions
  1. 5 2
      modules/cdp/Makefile
  2. 4 0
      modules/ims_auth/Makefile
  3. 4 0
      modules/ims_registrar_pcscf/Makefile

+ 5 - 2
modules/cdp/Makefile

@@ -13,11 +13,14 @@ endif
 ifneq ($(XML2CFG),)
 ifneq ($(XML2CFG),)
 	DEFS += $(shell $(XML2CFG) --cflags )
 	DEFS += $(shell $(XML2CFG) --cflags )
 	LIBS += $(shell $(XML2CFG) --libs)
 	LIBS += $(shell $(XML2CFG) --libs)
-	LIBS += -lrt
 else
 else
 	INCLUDES +=-I$(LOCALBASE)/include/libxml2 \
 	INCLUDES +=-I$(LOCALBASE)/include/libxml2 \
 		-I$(LOCALBASE)/include
 		-I$(LOCALBASE)/include
-	LIBS += -L$(LOCALBASE)/lib -lxml2 -lrt
+	LIBS += -L$(LOCALBASE)/lib -lxml2
+endif
+
+ifneq ($(OS),darwin)
+	LIBS += -lrt
 endif
 endif
 
 
 include ../../Makefile.modules
 include ../../Makefile.modules

+ 4 - 0
modules/ims_auth/Makefile

@@ -22,6 +22,10 @@ else
 	LIBS+=-L$(LOCALBASE)/lib -lxml2
 	LIBS+=-L$(LOCALBASE)/lib -lxml2
 endif
 endif
 
 
+ifneq ($(OS),darwin)
+	LIBS += -lrt
+endif
+
 DEFS+=-DOPENSER_MOD_INTERFACE
 DEFS+=-DOPENSER_MOD_INTERFACE
 
 
 SERLIBPATH=../../lib
 SERLIBPATH=../../lib

+ 4 - 0
modules/ims_registrar_pcscf/Makefile

@@ -22,6 +22,10 @@ else
 	LIBS+=-L$(LOCALBASE)/lib -lxml2
 	LIBS+=-L$(LOCALBASE)/lib -lxml2
 endif
 endif
 
 
+ifneq ($(OS),darwin)
+	LIBS += -lrt
+endif
+
 DEFS+=-DOPENSER_MOD_INTERFACE
 DEFS+=-DOPENSER_MOD_INTERFACE
 
 
 SERLIBPATH=../../lib
 SERLIBPATH=../../lib