musca: fix PIE

See #4572
This commit is contained in:
Juergen Buchmueller 2016-09-07 06:56:21 +02:00
parent 1ddac3d4a5
commit 884da4d8d6
2 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,20 @@
CFLAGS?=-Wall -g
LDFLAGS?=-s
LIBS?=-L/usr/lib -lX11 -lm
all: musca apis xlisten
musca: musca.o
$(CC) $(LDFLAGS) -o $@ $< $(LIBS)
apis: apis.o
$(CC) $(LDFLAGS) -o $@ $< $(LIBS)
xlisten: xlisten.o
$(CC) $(LDFLAGS) -o $@ $< $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f musca apis

View file

@ -1,15 +1,19 @@
# Template file for 'musca'
pkgname=musca
version=0.9.24
revision=1
revision=2
build_style=gnu-makefile
makedepends="libXcursor-devel"
makedepends="libX11-devel libXcursor-devel"
short_desc="A tiling window manager, with features nicked from ratpoison and dwm"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-3"
homepage="http://aerosuidae.net/musca.html"
distfiles="http://aerosuidae.net/musca-${version}.tgz"
checksum=c34e37e2df5075a61f8d5268786ab8115816af95c46e063c50f7f1c500527301
pre_build() {
cp ${FILESDIR}/Makefile .
}
do_install() {
vbin musca
vbin apis