diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 11 insertions, 21 deletions
@@ -1,6 +1,6 @@ pkgbase = libadalang-git pkgdesc = High performance syntactic and semantic engine for the Ada programming language - pkgver = r4155.7ddad847 + pkgver = r4370.89d25ed1 pkgrel = 1 url = https://github.com/AdaCore/libadalang/ arch = any @@ -1,7 +1,7 @@ # Maintainer: Pierre-Marie de Rodat <pmderodat on #ada at freenode.net> pkgname=libadalang-git -pkgver=r4155.7ddad847 +pkgver=r4370.89d25ed1 pkgrel=1 pkgdesc='High performance syntactic and semantic engine for the Ada programming language' @@ -30,27 +30,16 @@ build() { cd "$srcdir/${pkgname%-git}" - # In order to build the generated library, Langkit expects the QUEX_PATH to - # be set. - source /etc/profile.d/quex.sh - - # Clang has trouble compiling the Quex-generated lexer, so make sure - # GPRbuild chooses GCC. - gprconfig -o config.cgpr --batch --config=c,,,,GCC --config=ada,,,, - - python ada/manage.py --no-langkit-support generate + python manage.py generate # Build Libadalang both as a static library and as a shared one. Ask not to # use rpath (-R), but that only makes sense for the shared library, so # build in two steps: once for shared lib (+ mains), and once for static # lib. - # - # TODO: build & install static libraries. For now, this fails because - # auto-initialized static libraries are built using partial linking (ld's - # -r option), which conflicts with GCC's by default -pie option. - python ada/manage.py \ - --library-types relocatable --no-langkit-support \ - build --build-mode=prod --gargs="-R --config=$PWD/config.cgpr" + python manage.py build \ + --library-types static,static-pic,relocatable \ + --build-mode=prod \ + --gargs="-R" } package() @@ -58,9 +47,10 @@ package() cd "$srcdir/${pkgname%-git}" # Install the Ada library with its C binding - python ada/manage.py \ - --library-types relocatable --no-langkit-support \ - install --build-mode=prod "$pkgdir/usr" + python manage.py install \ + --library-types static,static-pic,relocatable \ + --build-mode=prod \ + "$pkgdir/usr" # Install the Python binding cd build/python |