This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XFree 4.2.1 + fontconfig-2


On Thu, 19 Sep 2002, Alan Hourihane wrote:

> It's more likely a historical thing. Just flip the flag to YES and
> rebuild. Alexander had a script to generate the foo-def.cpp files.

Actually it was a piece of an Imakefile. So let's convert it into a shell
script

#!/bin/bash
# usage: gendef libname objectfiles
# Generate dll export defines from object files
#
LIBNAME="$1"
shift
(
    echo "LIBRARY $LIBNAME"
    echo "VERSION LIBRARY_VERSION"
    echo "EXPORTS"
    ${NM:-nm} --demangle --defined-only "$@" | \
    sed -n 's/^.* T //p' | sed '/^typeinfo name\|:\|(/ d'
) > "$LIBNAME-def.cpp"

So 'gendef Xaw *.o' would create the export list for libXaw

HTH
    ago
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]