Re: chan_h323
Разобрался сам
Оригинальный Makefile:
ifeq ($(OSARCH),linux-gnu)
chan_h323.so: chan_h323.o h323/libchanh323.a h323/Makefile.ast
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS)
else
chan_h323.so: chan_h323.o h323/libchanh323.a
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
endif
После make configure:
ifeq ($(OSARCH),linux-gnu)
chan_h323.so: chan_h323.o h323/libchanh323.a h323/Makefile.ast
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS)
else
chan_h323.so: chan_h323.o h323/libchanh323.a
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
ifeq ($(OSARCH),FreeBSD)
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS)
else
$(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
endif
endif
Вернул всё назад и ещё подправил секцию
ifeq ($(OSARCH),FreeBSD)
PTLIB=-lpt_FreeBSD_x86_r
H323LIB=-lh323_FreeBSD_x86_r
CHANH323LIB=-pthread
endif
на
ifeq ($(OSARCH),FreeBSD)
PTLIB=-lpt_r
H323LIB=-lh323_r
CHANH323LIB=-pthread
endif
# ldd ./chan_h323.so
./chan_h323.so:
libpt_r.so.1 => /usr/local/lib/libpt_r.so.1 (0x281d5000)
libh323_r.so.1 => /usr/local/lib/libh323_r.so.1 (0x286e4000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x2912c000)
libssl.so.4 => /usr/lib/libssl.so.4 (0x2921f000)
libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x2924d000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x2926b000)
libm.so.4 => /lib/libm.so.4 (0x29336000)
libldap-2.3.so.2 => /usr/local/lib/libldap-2.3.so.2 (0x2934c000)
liblber-2.3.so.2 => /usr/local/lib/liblber-2.3.so.2 (0x2937a000)
libldap_r-2.3.so.2 => /usr/local/lib/libldap_r-2.3.so.2 (0x29385000)
|