--- channels/Makefile.orig 2015-07-24 22:06:05 UTC +++ channels/Makefile @@ -27,9 +27,10 @@ ifeq ($(OSARCH),linux-gnu) endif ifeq ($(OSARCH),FreeBSD) - PTLIB=-lpt_FreeBSD_x86_r - H323LIB=-lh323_FreeBSD_x86_r + PTLIB=-lpt_r + H323LIB=-lh323_r CHANH323LIB=-pthread + H323LDLIBS=$(PTLIB) $(H323LIB) $(CHANH323LIB) endif ifeq ($(OSARCH),NetBSD) @@ -86,9 +87,13 @@ chan_h323.so: chan_h323.o h323/libchanh3 else chan_h323.so: chan_h323.o h323/libchanh323.a $(ECHO_PREFIX) echo " [LD] $^ -> $@" +ifeq ($(OSARCH),FreeBSD) + $(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(ASTLDFLAGS) $(SOLINK) -L$(LOCALBASE)/lib $(H323LDFLAGS) -o $@ $< h323/libchanh323.a $(H323LDLIBS) $(CHANH323LIB) +else $(CMD_PREFIX) $(CXX) $(PTHREAD_CFLAGS) $(_ASTLDFLAGS) $(ASTLDFLAGS) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat endif endif +endif chan_misdn.o: _ASTCFLAGS+=-Imisdn