Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: othersrc/external/bsd/bsdlibtool



Module Name:    othersrc
Committed By:   agc
Date:           Sun Aug 12 01:01:47 UTC 2012

Update of /cvsroot/othersrc/external/bsd/bsdlibtool
In directory ivanova.netbsd.org:/tmp/cvs-serv14258

Log Message:
initial import of a bsd-licensed libtool work-alike, intended to
interwork with GNU libtool (i.e.  same command line arguments, and
produces libtool archives which can be manipulated by both libtools).

needs porting to other operating systems except NetBSD/amd64, but
works well enough to be able to build pkgsrc/misc/libutf, and have the
packages which use that as a pre-req to link and pass tests just fine. 
this is true both manually, and using the pkgsrc plist framework.

Example:

% cat Makefile
PREFIX=/usr/pkg
LIBTOOL=bsdlibtool
CFLAGS=-g -O0

all: libhello.la

wibble.o: wibble.c
        ${LIBTOOL} --tag=CC --mode=compile --verbose cc ${CFLAGS} -c wibble.c
wobble.o: wobble.c
        ${LIBTOOL} --tag=CC --mode=compile --verbose cc ${CFLAGS} -c wobble.c

libhello.la: wibble.o wobble.o
        ${LIBTOOL} --mode=link --verbose cc ${CFLAGS} -o libhello.la wibble.lo 
wobble.lo -rpath ${PREFIX}/lib -lm -version-info 3:0

install: all
        mkdir -p ${PREFIX}/lib
        ${LIBTOOL} --mode=install --verbose install -c -m 0755 -o agc -g agc 
libhello.la ${PREFIX}/lib

clean:
        rm -rf *.o *.lo .libs instdir
% make
bsdlibtool --tag=CC --mode=compile --verbose cc -g -O0 -c wibble.c
libtool: compile: cc -g -O0 -c wibble.c -fPIC -DPIC -o .libs/wibble.o
libtool: compile: cc -g -O0 -c wibble.c -o wibble.o
bsdlibtool --tag=CC --mode=compile --verbose cc -g -O0 -c wobble.c
libtool: compile: cc -g -O0 -c wobble.c -fPIC -DPIC -o .libs/wobble.o
libtool: compile: cc -g -O0 -c wobble.c -o wobble.o
bsdlibtool --mode=link --verbose cc -g -O0 -o libhello.la wibble.lo wobble.lo 
-rpath /usr/pkg/lib -lm -version-info 3:0
libtool: link: cc -shared  .libs/wibble.o .libs/wobble.o  -lm -Wl,-soname 
-Wl,libhello.so.3 -o .libs/libhello.so.3.0.0
libtool: link: (cd .libs && rm -f libhello.so.3 && ln -s libhello.so.3.0.0 
libhello.so.3)
libtool: link: (cd .libs && rm -f libhello.so && ln -s libhello.so.3.0.0 
libhello.so)
libtool: link: ar cru .libs/libhello.a  wibble.o wobble.o
libtool: link: ranlib .libs/libhello.a
libtool: link: (cd .libs && rm -f libhello.la && ln -s ../libhello.la 
libhello.la)
% make install
mkdir -p /usr/pkg/lib
bsdlibtool --mode=install --verbose install -c -m 0755 -o agc -g agc 
libhello.la /usr/pkg/lib
libtool: install:  install -c -m 0755 -o agc -g agc .libs/libhello.so.3.0.0  
/usr/pkg/lib
libtool: install: (cd /usr/pkg/lib && ln -s -f libhello.so.3.0.0 libhello.so.3)
libtool: install: (cd /usr/pkg/lib && ln -s -f libhello.so.3.0.0 libhello.so)
libtool: install:  install -c -m 0755 -o agc -g agc .libs/libhello.lai 
/usr/pkg/lib/libhello.la
libtool: install:  install -c -m 0755 -o agc -g agc .libs/libhello.a 
/usr/pkg/lib/libhello.a
libtool: install: chmod 644 /usr/pkg/lib/libhello.a
libtool: install: ranlib /usr/pkg/lib/libhello.a
%


Status:

Vendor Tag:     CROOKS
Release Tags:   bsdlibtool-base
                
N othersrc/external/bsd/bsdlibtool/Makefile
N othersrc/external/bsd/bsdlibtool/TODO
N othersrc/external/bsd/bsdlibtool/bin/Makefile
N othersrc/external/bsd/bsdlibtool/bin/tests/Makefile
N othersrc/external/bsd/bsdlibtool/bin/tests/foo.c
N othersrc/external/bsd/bsdlibtool/bin/tests/hello.c
N othersrc/external/bsd/bsdlibtool/dist/bsdlibtool.1
N othersrc/external/bsd/bsdlibtool/dist/bsdlibtool.sh

No conflicts created by this import




Home | Main Index | Thread Index | Old Index