Comments (9)
void-linux/void-packages#37834 (comment)
We should use STWCFLAGS
and keep CFLAGS
. Same stands for LDFLAGS
.
Also CC
should probably be removed.
from stw.
cool! it works.
shall i open a new PR?
edit: that was a stupid question
from stw.
Feel free to package stw, I'll add first tag.
from stw.
https://github.com/sineemore/stw/releases/tag/0.1
from stw.
i do not see how the Makefile has anything to do with this,
i did see dwm
which uses freetype2 and fontconfig having this:
do_build() {
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h
sed -i "/CFLAGS/s|\${CPPFLAGS}|& $CFLAGS|g" config.mk
sed -i "/LDFLAGS/s|\-s|$LDFLAGS|g" config.mk
make CC=$CC INCS="-I. -I${XBPS_CROSS_BASE}/usr/include/freetype2" LIBS="-lX11 -lXinerama -lXft -lfontconfig"
}
also:
do_configure() {
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h
cat <<! >>config.mk
INCS = -I${XBPS_CROSS_BASE}/usr/include/freetype2
INCS+= -I${XBPS_CROSS_BASE}/usr/include/X11
LIBS = -lc -lm -lXft -lfontconfig -lX11
!
}
i assume i can do this to the stw package as well.
as we can also have a custom configuration for stw via packages.
from stw.
Well, if it is a way to go than OK =)
from stw.
You can continue packaging with https://github.com/sineemore/stw/releases/tag/0.2
from stw.
Also CC should probably be removed.
True, but could have been replaced for c99
instead of cc
.
as for the self flags:
cc -std=c99 -pedantic -Wall -Werror -I/usr/include/X11 `pkg-config --cflags fontconfig` -I/usr/aarch64-linux-gnu/usr/include -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -fstack-clash-protection -D_FORTIFY_SOURCE=2 -O2 -pipe -march=armv8-a -I/usr/aarch64-linux-gnu/usr/include -fdebug-prefix-map=/builddir/stw-0.2=. -c stw.c
cc1: error: bad value ('armv8-a') for '-march=' switch
cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake tigerlake cooperlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
make: *** [Makefile:8: stw.o] Error 1
=> ERROR: stw-0.2_1: do_install: '${make_cmd} STRIP=true PREFIX=/usr DESTDIR=${DESTDIR} ${make_install_args} ${make_install_target}' exited with 2
=> ERROR: in do_install() at common/build-style/gnu-makefile.sh:40
from stw.
ehhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh its stale now and i no longer use void
from stw.
Related Issues (10)
- Fails with marquee text HOT 12
- floating point period cannot be set HOT 4
- How to compile on FreeBSD HOT 5
- root-tail like behaviour? HOT 2
- How to position window in top left corner of screen? HOT 6
- Erroneous behaviour with empty text HOT 2
- Window sometimes hangs when showing contents of a changing file HOT 3
- How do I set opacity? HOT 2
- Alpha isn't working. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stw.