Commit Graph

24 Commits

Author SHA1 Message Date
d7bd98e719 Use -fmacro-prefix-map for utils
The __FILE__ macro is used in the EXCEPTION macro to report the file
name alongside error messages. This macro reports the file name
exactly as it is passed to the compiler. For most source files in
libgourou this is a nice relative path such as "src/libgourou.cpp".
However, for EXCEPTION instances in libgourou_common.h, the compiler
flag is "-I$(ROOT)/include", where $(ROOT) is an absolute path passed
from the higher Makefile. This results in an absolute path to the
build directory being hardcoded into the utils shared library and
binaries, and reported in error messages. Besides being less readable
than the more common relative paths, this triggers warnings from
packaging tools that detect inadvertent references to temporary build
directories that end up in compiled binaries and might indicate a bug.

There is a GCC feature -fmacro-prefix-map which allows to perform
substition on the values that are used for __FILE__. Use that option
to strip out the absolute path component, without changing any
functionality.

The feature was added to GCC on 2018-01-18 and released in GCC 8.1.0.

7365279fca
2026-03-14 13:51:40 +01:00
8f0341d0bd Some code formating 2026-01-18 15:44:20 +01:00
9a75213b49 Fix misuse of DESTDIR and PREFIX in Makefile 2023-08-08 20:13:03 +02:00
46afe771c7 Remove old pugixml include in utils Makefile 2023-01-15 09:51:00 +01:00
50bc16079f Fix static build 2023-01-14 12:56:06 +01:00
a66dcb959c Work on Makefile 2023-01-11 19:57:47 +01:00
84b01a5de3 Use system version of pugixml, not a checkouted one 2023-01-08 21:15:33 +01:00
8aec5be244 Update Makefile to be more GNU/Linux style 2023-01-08 21:05:04 +01:00
7b8c7acbad Compute first pass for encryptedKey if keyType attribute is set 2022-08-29 11:57:33 +02:00
7f5b787cb9 Add launcher util for AppImage 2022-08-29 11:56:47 +02:00
600535d52c Utils: Migration to OpenSSL3 2022-08-29 11:56:47 +02:00
210b265693 Forward DEBUG flag in Makefile 2022-08-10 21:34:30 +02:00
22880c71c6 Update Makefile to support separated OpenSSL3 compilation 2022-06-08 12:24:38 +02:00
4f288f4e24 Add support for OpenSSL 3 2022-06-05 15:29:20 +02:00
8fe8ba2808 Add adept_loan_mgt util 2022-04-03 09:39:46 +02:00
2ce6142596 Remove QtCore and QtNetwork, replace them by libcurl + libc 2022-03-16 22:45:33 +01:00
b8a4ca222e Add adept_remove util 2021-12-18 17:42:23 +01:00
8413b844db Forgot to add libgourou.a as a dependency in utils Makefile 2021-11-26 20:01:21 +01:00
59c801da08 Fix STATIC_BUILD errors 2021-09-28 18:14:41 +02:00
c57aba8061 Fix an error in utils Makefile : forgot -lz in static build 2021-09-28 15:02:50 +02:00
3d9e343734 Add support for PDF (needs uPDFParser library) 2021-08-21 21:12:52 +02:00
20b4e69c3e Rename too generic "activate" util in "adept_activate" 2021-07-16 20:44:40 +02:00
e4a7874cfb Add STATIC_UTILS option to Makefile 2021-07-05 20:23:25 +02:00
d5ce4d625e Initial commit 2021-07-03 21:57:53 +02:00