File opal-missing_links.patch of Package opal
Index: plugins/audio/LPC_10/Makefile.in
===================================================================
--- plugins/audio/LPC_10/Makefile.in.orig
+++ plugins/audio/LPC_10/Makefile.in
@@ -129,9 +129,9 @@ $(PLUGIN): $(OBJECTS)
ifeq (solaris,$(findstring solaris,$(target_os)))
- $(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
+ $(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(EXTRALIBS) -lm
else
- $(Q_LD)$(CC) $(LDSO) -o $@ $^ $(EXTRALIBS)
+ $(Q_LD)$(CC) $(LDSO) -o $@ $^ $(EXTRALIBS) -lm
endif
Index: plugins/audio/gsm-amr/Makefile.in
===================================================================
--- plugins/audio/gsm-amr/Makefile.in.orig
+++ plugins/audio/gsm-amr/Makefile.in
@@ -60,9 +60,9 @@ $(PLUGIN): $(OBJECTS)
ifeq (solaris,$(findstring solaris,$(target_os)))
- $(Q_LD)$(CC) $(LDSO) $@ -o $@ $^
+ $(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ -lm
else
- $(Q_LD)$(CC) $(LDSO) -o $@ $^
+ $(Q_LD)$(CC) $(LDSO) -o $@ $^ -lm
endif
Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -201,6 +201,7 @@ endif
ifdef OPAL_PTLIB_SSL
SOURCES += $(OPAL_SRCDIR)/h235auth1.cxx
+LIBS += -lcrypto
endif
SOURCES += $(OPAL_SRCDIR)/t120/t120proto.cxx \
Index: plugins/video/H.261-vic/Makefile.in
===================================================================
--- plugins/video/H.261-vic/Makefile.in.orig
+++ plugins/video/H.261-vic/Makefile.in
@@ -103,11 +103,11 @@ endif
$(OBJDIR)/%.o : %.cxx
@mkdir -p $(OBJDIR) >/dev/null 2>&1
- $(Q_CC)$(CXX) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -c $< -o $@
+ $(Q_CC)$(CXX) -pthread -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -c $< -o $@
$(OBJDIR)/%.o : %.c
@mkdir -p $(OBJDIR) >/dev/null 2>&1
- $(Q_CC)$(CC) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -c $< -o $@
+ $(Q_CC)$(CC) -pthread -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -c $< -o $@
PLUGIN = ./$(BASENAME)_video_pwplugin.$(PLUGINEXT)
STATIC = ./lib$(BASENAME)_video_s.a
@@ -116,7 +116,7 @@ OBJECTS = $(addprefix $(OBJDIR)/,$(patsu
$(PLUGIN): $(OBJECTS)
ifeq (,$(findstring solaris,$(target_os)))
- $(Q_LD)$(CXX) $(LDSO) -o $@ $^
+ $(Q_LD)$(CXX) $(LDSO) -pthread -o $@ $^
else
$(Q_LD)$(CXX) $(LDSO) $@ -o $@ $^
endif
Index: plugins/video/H.264/Makefile.in
===================================================================
--- plugins/video/H.264/Makefile.in.orig
+++ plugins/video/H.264/Makefile.in
@@ -120,7 +120,7 @@ endif
$(OBJDIR)/%.o : %.cxx
@mkdir -p $(OBJDIR) >/dev/null 2>&1
- $(Q_CC)$(CXX) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -c $< -o $@
+ $(Q_CC)$(CXX) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -pthread -c $< -o $@
PLUGIN = ./$(BASENAME)_video_pwplugin.$(PLUGINEXT)
STATIC = ./lib$(BASENAME)_video_s.a
@@ -130,9 +130,9 @@ OBJECTS = $(addprefix $(OBJDIR)/,$(patsu
$(PLUGIN): $(OBJECTS)
@set -e; $(foreach dir,$(SUBDIRS),if test -d ${dir} ; then $(MAKE) -C $(dir); fi ; )
ifeq (,$(findstring solaris,$(target_os)))
- $(Q_LD)$(CXX) $(LDSO) $(LDFLAGS) $(DL_LIBS) -o $@ $^
+ $(Q_LD)$(CXX) $(LDSO) -pthread $(LDFLAGS) -o $@ $^ $(DL_LIBS)
else
- $(Q_LD)$(CXX) $(LDSO) $(LDFLAGS) $(DL_LIBS) $@ -o $@ $^
+ $(Q_LD)$(CXX) $(LDSO) $(LDFLAGS) $@ -o $@ $^ $(DL_LIBS)
endif
Index: plugins/video/H.263-1998/Makefile.in
===================================================================
--- plugins/video/H.263-1998/Makefile.in.orig
+++ plugins/video/H.263-1998/Makefile.in
@@ -77,7 +77,7 @@ SRCS += h263-1998.cxx \
$(OBJDIR)/%.o : %.cxx
@mkdir -p $(OBJDIR) >/dev/null 2>&1
- $(Q_CC)$(CXX) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) $(EXTRACFLAGS) -c $< -o $@
+ $(Q_CC)$(CXX) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) $(EXTRACFLAGS) -pthread -c $< -o $@
PLUGIN = ./$(BASENAME)_video_pwplugin.$(PLUGINEXT)
STATIC = ./lib$(BASENAME)_video_s.a
@@ -86,9 +86,9 @@ OBJECTS = $(addprefix $(OBJDIR)/,$(patsu
$(PLUGIN): $(OBJECTS)
ifeq (,$(findstring solaris,$(target_os)))
- $(Q_LD)$(CXX) $(LDSO) $(DL_LIBS) -o $@ $^ $(LDFLAGS)
+ $(Q_LD)$(CXX) $(LDSO) -pthread -o $@ $^ $(LDFLAGS) $(DL_LIBS)
else
- $(Q_LD)$(CXX) $(LDSO) $(DL_LIBS) $@ -o $@ $^ $(LDFLAGS)
+ $(Q_LD)$(CXX) $(LDSO) $@ -o $@ $^ $(LDFLAGS) $(DL_LIBS)
endif
install: $(PLUGIN)
Index: plugins/video/MPEG4-ffmpeg/Makefile.in
===================================================================
--- plugins/video/MPEG4-ffmpeg/Makefile.in.orig
+++ plugins/video/MPEG4-ffmpeg/Makefile.in
@@ -92,7 +92,7 @@ endif
$(OBJDIR)/%.o : %.cxx
@mkdir -p $(OBJDIR) >/dev/null 2>&1
- $(Q_CC)$(CXX) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -c $< -o $@
+ $(Q_CC)$(CXX) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -pthread -c $< -o $@
PLUGIN = ./$(BASENAME)_video_pwplugin.$(PLUGINEXT)
STATIC = ./lib$(BASENAME)_video_s.a
@@ -101,9 +101,9 @@ OBJECTS = $(addprefix $(OBJDIR)/,$(patsu
$(PLUGIN): $(OBJECTS)
ifeq (,$(findstring solaris,$(target_os)))
- $(Q_LD)$(CXX) $(LDSO) $(DL_LIBS) -o $@ $^
+ $(Q_LD)$(CXX) $(LDSO) -pthread -o $@ $^ $(DL_LIBS)
else
- $(Q_LD)$(CXX) $(LDSO) $(DL_LIBS) $@ -o $@ $^
+ $(Q_LD)$(CXX) $(LDSO) $@ -o $@ $^ $(DL_LIBS)
endif
install:
Index: plugins/video/THEORA/Makefile.in
===================================================================
--- plugins/video/THEORA/Makefile.in.orig
+++ plugins/video/THEORA/Makefile.in
@@ -42,7 +42,7 @@ STDCCFLAGS =@STDCCFLAGS@
LDFLAGS =@LDFLAGS@
THEORA_LIBS =@THEORA_LIBS@
-EXTRACCFLAGS += -I$(COMMONDIR) -I$(PLUGINDIR)
+EXTRACCFLAGS += -I$(COMMONDIR) -I$(PLUGINDIR) -pthread
vpath %.cxx $(COMMONDIR)
vpath %.o $(OBJDIR)
@@ -73,7 +73,7 @@ OBJECTS = $(addprefix $(OBJDIR)/,$(patsu
$(PLUGIN): $(OBJECTS)
ifeq (,$(findstring solaris,$(target_os)))
- $(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) -o $@ $^ $(THEORA_LIBS)
+ $(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) -pthread -o $@ $^ $(THEORA_LIBS)
else
$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(THEORA_LIBS)
endif
Index: plugins/LID/IxJ/Makefile.in
===================================================================
--- plugins/LID/IxJ/Makefile.in.orig
+++ plugins/LID/IxJ/Makefile.in
@@ -65,14 +65,14 @@ endif
$(OBJDIR)/%.o : %.cxx
@mkdir -p $(OBJDIR) >/dev/null 2>&1
- $(Q_CC)$(CC) -I../../../include $(STDCCFLAGS) $(OPTCCFLAGS) $(CXXFLAGS) -c $< -o $@
+ $(Q_CC)$(CXX) -I../../../include $(STDCCFLAGS) $(OPTCCFLAGS) $(CXXFLAGS) -c $< -o $@
PLUGIN = ./ixj_lid_pwplugin.so
OBJECTS = $(addprefix $(OBJDIR)/,$(patsubst %.cxx,%.o,$(notdir $(SRCS))))
$(PLUGIN): $(OBJECTS)
- $(Q_LD)$(CC) $(LDSO)$(SONAME) -o $@ $^ $(EXTRALIBS)
+ $(Q_LD)$(CXX) $(LDSO)$(SONAME) -o $@ $^ $(EXTRALIBS)
install:
mkdir -p $(DESTDIR)$(libdir)/$(LID_PLUGIN_DIR)
Index: plugins/LID/CAPI/Makefile.in
===================================================================
--- plugins/LID/CAPI/Makefile.in.orig
+++ plugins/LID/CAPI/Makefile.in
@@ -60,14 +60,14 @@ endif
$(OBJDIR)/%.o : %.cxx
@mkdir -p $(OBJDIR) >/dev/null 2>&1
- $(Q_CC)$(CC) -I../../../include $(STDCCFLAGS) $(OPTCCFLAGS) $(CXXFLAGS) -c $< -o $@
+ $(Q_CC)$(CXX) -I../../../include $(STDCCFLAGS) $(OPTCCFLAGS) $(CXXFLAGS) -pthread -c $< -o $@
-PLUGIN = ./ixj_lid_pwplugin.so
+PLUGIN = ./capi_lid_pwplugin.so
OBJECTS = $(addprefix $(OBJDIR)/,$(patsubst %.cxx,%.o,$(notdir $(SRCS))))
$(PLUGIN): $(OBJECTS)
- $(Q_LD)$(CC) $(LDSO)$(SONAME) -o $@ $^ $(EXTRALIBS)
+ $(Q_LD)$(CXX) $(LDSO)$(SONAME) -pthread -o $@ $^ $(EXTRALIBS) -lrt -lcapi20
install:
mkdir -p $(DESTDIR)$(libdir)/$(LID_PLUGIN_DIR)