3.27.91 build failure on debian/Ubuntu
gjs 3.27.91 fails to build on debian/ubuntu most likely due to --as-needed linking.
libtool: link: ( cd ".libs" && rm -f "libregress.la" && ln -s "../libregress.la" "libregress.la" )
CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPIC" LDFLAGS="-Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -Bsymbolic-functions -fPIC -DPIC" CC="gcc" PKG_CONFIG="/usr/bin/pkg-config" DLLTOOL="false" /usr/bin/g-ir-scanner --namespace=Regress --nsversion=1.0 --libtool="/bin/bash ./libtool" --library=libregress.la --warn-all --warn-error --include=Gio-2.0 --include=cairo-1.0 --warn-all --cflags-begin --cflags-end installed-tests/regress.c installed-tests/regress.h libregress.la --output Regress-1.0.gir
gjs/.libs/libgjs_la-profiler.o: In function `gjs_profiler_start':
./gjs/profiler.cpp:429: undefined reference to `timer_create'
./gjs/profiler.cpp:442: undefined reference to `timer_settime'
./gjs/profiler.cpp:444: undefined reference to `timer_delete'
gjs/.libs/libgjs_la-profiler.o: In function `gjs_profiler_stop':
./gjs/profiler.cpp:495: undefined reference to `timer_settime'
./gjs/profiler.cpp:496: undefined reference to `timer_delete'
collect2: error: ld returned 1 exit status
probably need to explicitly link against -lrt for the profiler.
I will make a patch, but am confused by the whole gitlab thing!
Edited by Philip Chimento