Git Product home page Git Product logo

Comments (9)

sineemore avatar sineemore commented on June 8, 2024 1

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.

apprehensions avatar apprehensions commented on June 8, 2024 1

cool! it works.
shall i open a new PR?
edit: that was a stupid question

from stw.

sineemore avatar sineemore commented on June 8, 2024

Feel free to package stw, I'll add first tag.

from stw.

sineemore avatar sineemore commented on June 8, 2024

https://github.com/sineemore/stw/releases/tag/0.1

from stw.

apprehensions avatar apprehensions commented on June 8, 2024

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.

sineemore avatar sineemore commented on June 8, 2024

Well, if it is a way to go than OK =)

from stw.

sineemore avatar sineemore commented on June 8, 2024

You can continue packaging with https://github.com/sineemore/stw/releases/tag/0.2

from stw.

apprehensions avatar apprehensions commented on June 8, 2024

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.

apprehensions avatar apprehensions commented on June 8, 2024

ehhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh its stale now and i no longer use void

from stw.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.