xcruiser: fix gcc6 build
The order of object files and libraries is important. Create a Makefile that puts the $(LIBS) after the *.o files.
This commit is contained in:
parent
9f5a5e3a03
commit
aa4e646b18
1 changed files with 4 additions and 2 deletions
|
@ -10,12 +10,14 @@ license="GPL-2"
|
||||||
homepage="http://${pkgname}.sourceforge.net/"
|
homepage="http://${pkgname}.sourceforge.net/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=917b68dc06389bfcdde742f0798f61cdeaea2ae3c6567960c33f7634d4861ce5
|
checksum=917b68dc06389bfcdde742f0798f61cdeaea2ae3c6567960c33f7634d4861ce5
|
||||||
LDFLAGS="-lXaw -lXmu -lXt -lX11 -lm"
|
LIBS="-lXaw -lXmu -lXt -lX11 -lm"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
local sources
|
local sources
|
||||||
sources=(*.c)
|
sources=(*.c)
|
||||||
echo "${pkgname}: ${sources[@]/%c/o}" >Makefile
|
echo "LIBS=${LIBS}" >Makefile
|
||||||
|
echo "${pkgname}: ${sources[@]/%c/o}" >>Makefile
|
||||||
|
echo ' $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)' >>Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue