Sfoglia il codice sorgente

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

Carsten Bock 12 anni fa
parent
commit
7f7e0d046c

+ 5 - 2
modules/cdp/Makefile

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

+ 4 - 0
modules/ims_auth/Makefile

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

+ 4 - 0
modules/ims_registrar_pcscf/Makefile

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