From owner-freebsd-ports Fri Jan 8 10:05:09 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA28943 for freebsd-ports-outgoing; Fri, 8 Jan 1999 10:05:09 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA28929 for ; Fri, 8 Jan 1999 10:05:03 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id QAA12054; Fri, 8 Jan 1999 16:58:28 +0100 From: Luigi Rizzo Message-Id: <199901081558.QAA12054@labinfo.iet.unipi.it> Subject: new port howto... To: ports@FreeBSD.ORG Date: Fri, 8 Jan 1999 16:58:28 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, i am trying to make a 3.0 port for otcl and TclCL, used by the "ns" simulator. I am a bit unclear, though, on the naming schemes and commands used for shared libraries. The basic packages (working on 2.2.x i guess) assume a .so suffix for the shlib, and build it with ld -Bshareable ... On another port (gsm) i see the following patches to the makefile: .if ${PORTOBJFORMAT} == elf SOLIBGSM = libgsm.so.1 .else SOLIBGSM = libgsm.so.1.1 and $(LIB)/$(SOLIBGSM): $(LIB) $(GSM_OBJECTS:S/o$/so/g) .if ${PORTOBJFORMAT} == elf $(CC) -o $@ -shared -Wl,-soname,$(SOLIBGSM) $(GSM_OBJECTS:S/o$/so/g) .else ld -Bshareable -o $@ $(GSM_OBJECTS:S/o$/so/g) .endif (cd $(LIB); \ ln -sf $(SOLIBGSM) `echo $(SOLIBGSM) | sed 's/\.so.*$$/.so/'`) can someone tell me why is the difference required ? thanks luigi -----------------------------------+------------------------------------- Luigi RIZZO . EMAIL: luigi@iet.unipi.it . Dip. di Ing. dell'Informazione HTTP://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message