Changeset 54b2a36


Ignore:
Timestamp:
2017-05-13T20:38:35Z (7 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
e199620
Parents:
eb73d05
Message:

cygwin: Export a "libbitlbee.dll.a" to allow plugins to link to it

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    reb73d05 r54b2a36  
    9494        mkdir -p $(DESTDIR)$(SBINDIR)
    9595        $(INSTALL) -m 0755 $(OUTFILE) $(DESTDIR)$(SBINDIR)/$(OUTFILE)
     96ifdef IMPLIB
     97        # import library for cygwin
     98        $(INSTALL) -m 0644 $(IMPLIB) $(DESTDIR)$(LIBDIR)/$(IMPLIB)
     99endif
    96100
    97101uninstall-bin:
    98102        rm -f $(DESTDIR)$(SBINDIR)/$(OUTFILE)
     103ifdef IMPLIB
     104        rm -f $(DESTDIR)$(LIBDIR)/$(IMPLIB)
     105endif
    99106
    100107install-dev:
  • configure

    reb73d05 r54b2a36  
    1515datadir='$prefix/share/bitlbee/'
    1616config='/var/lib/bitlbee/'
     17libdir='$prefix/lib/'
    1718plugindir='$prefix/lib/bitlbee/'
    1819includedir='$prefix/include/bitlbee/'
     
    173174datadir=$(eval echo "$datadir/" | sed 's/\/\{1,\}/\//g')
    174175config=$(eval echo "$config/" | sed 's/\/\{1,\}/\//g')
     176libdir=$(eval echo "$libdir/" | sed 's/\/\{1,\}/\//g')
    175177plugindir=$(eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g')
    176178includedir=$(eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g')
     
    196198PLUGINDIR=$plugindir
    197199CONFIG=$config
     200LIBDIR=$libdir
    198201INCLUDEDIR=$includedir
    199202PCDIR=$pcdir
     
    800803fi
    801804
     805pkgconfiglibs=''
     806case "$arch" in
     807CYGWIN* )
     808        pkgconfiglibs='-L${libdir} -lbitlbee'
     809esac
     810
    802811cat <<EOF >bitlbee.pc
    803812prefix=$prefix
    804813includedir=$includedir
    805814plugindir=$plugindir
     815libdir=$libdir
    806816
    807817Name: bitlbee
     
    809819Requires: glib-2.0
    810820Version: $BITLBEE_VERSION
    811 Libs:
     821Libs: $pkgconfiglibs
    812822Cflags: -I\${includedir}
    813823
     
    919929;;
    920930CYGWIN* )
     931        echo 'EFLAGS+=-Wl,--export-all,--out-implib,libbitlbee.dll.a' >> Makefile.settings
     932        echo 'IMPLIB=libbitlbee.dll.a' >> Makefile.settings
    921933;;
    922934Windows )
Note: See TracChangeset for help on using the changeset viewer.