Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 1999 16:58:28 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        ports@FreeBSD.ORG
Subject:   new port howto...
Message-ID:  <199901081558.QAA12054@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901081558.QAA12054>