Added shared library build
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Maintainer: Björn Lemke <lemke@lemke-it.com>
|
||||
# Maintainer: Bjoern Lemke <lemke@lemke-it.com>
|
||||
|
||||
_realname=lfcbase
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=1.7.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="LFC C++ base classes (mingw-w64)"
|
||||
arch=('any')
|
||||
url='http://www.lemke-it.com/'
|
||||
@@ -31,6 +31,12 @@ build() {
|
||||
--enable-shared
|
||||
|
||||
make
|
||||
|
||||
${MINGW_PREFIX}/bin/gcc -shared \
|
||||
-Wl,--out-implib,liblfcbase.dll.a \
|
||||
-o liblfcbase-0.dll \
|
||||
${srcdir}/build-${CARCH}/src/*.o \
|
||||
-lsystre -lws2_32 -lpthread -lstdc++
|
||||
}
|
||||
|
||||
check() {
|
||||
@@ -41,4 +47,8 @@ check() {
|
||||
package() {
|
||||
cd "${srcdir}"/build-${CARCH}
|
||||
make install DESTDIR="${pkgdir}"
|
||||
|
||||
mkdir -p "${pkgdir}"${MINGW_PREFIX}/{bin,lib}
|
||||
install -m 0755 liblfcbase-0.dll "${pkgdir}${MINGW_PREFIX}/bin"
|
||||
install -m 0644 liblfcbase.dll.a "${pkgdir}${MINGW_PREFIX}/lib"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user