From Newsgroup: news.software.readers
Fleuger wrote:
Michael BEuerle a ocrit :
1.4.0 2026-10-24 Release
--------------------------
Hello,
Thank you for this new release.
You're welcome.
To install flnews 1.4.0 on my iMac M4, I have added the following lines
to the CONFIG file:
-------------------------
# Homebrew tools and libraries paths (Apple Silicon M4) CFG_FLTK_CONFIG="/opt/homebrew/bin/fltk-config"
# Fix PKG_CONFIG path for OpenSSL CFG_PKG_CONFIG_PATH="/opt/homebrew/opt/openssl/lib/pkgconfig:/opt/homebrew/lib/pkgconfig"
# Compilation with explicit macOS SDK targeting
CC="clang"
CXX="clang++"
CFG_CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include -isysroot $(xcrun --show-sdk-path)"
# CRUCIAL ADDITION: Include directory containing libssl.a / libssl.dylib CFG_LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib -isysroot $(xcrun --show-sdk-path)"
export CFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include" export LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib"
export CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include" -------------------------
I don't use macOS, but I would expect that the default compilers are
already clang and clang++ there (no need for explicit configuration).
The file CONFIG is processed by the script mkconfig in the build step
"make config"|.
Additional variables with prefix "CFG_" in CONFIG would only be
processed if mkconfig is modified to use them.
If you have used a pristine mkconfig script, they should be ignored.
The "-I" flags are for the preprocessor, it should be sufficient to
set them in CPPFLAGS.
Have you tried whether the last two lines from the block you quoted
above are sufficient?
Defining the variables in the environment should work too: -------------------------
$ export LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/openssl/lib"
$ export CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include" $ make config
-------------------------
The most important part is PATH. You need to configure it so that the
flnews build system can execute "fltk-config" and "openssl".
A search via PATH should look in "/opt/homebrew/bin" first.
Likely that was already the case on your system.
The flnews build system uses "fltk-config" to find the FLTK library and
its headers automatically (no need to manually configure CPPFLAGS or
LDFLAGS).
The ugly part is OpenSSL. For historic reasons pkg-config is not used
(this should be changed in a future version of flnews).
Currently the frontend "openssl" is asked for the version and flnews is configured to use a library API that matches this version.
Therefore it is important that the configuration of CPPFLAGS and LDFLAGS
point to the same library version that is used by "openssl" (from the
location resolved via PATH).
In the file "config.log" you can check the detected version. Example:
|
| Check for OpenSSL ...
| OpenSSL 4.0.0 14 Apr 2026 (Library: OpenSSL 4.0.0 14 Apr 2026)
| Detected library name: OpenSSL
| API 4
_____________
| CONFIG is used by Makefile too, for the utilities defined by the
UTIL_xxx variables. But what you want to configure should be handled
by mkconfig.
--- Synchronet 3.22a-Linux NewsLink 1.2