gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: release?


From: Gary E. Miller
Subject: Re: release?
Date: Thu, 5 Jan 2023 15:40:32 -0800

Yo All!

I think the last hurdle to a release is passed.  A fix for the OPenBSD 7
link problem has been found, and applied.  The patch is guarded for just
OpenBSD7, so should not affect other distros:

+    if config.env['target_platform'].startswith('openbsd7'):
+        # as of 5 Jan 23:
+        # scons 4.4.0 with clang 13.0.0 has trouble determining clang version.
+        # Then fails to add -fPIC.  So we force it here:
+        config.env.Append(CCFLAGS=['fPIC'])

scons 4.4.0 can not figure out what version that clang 13.0.0 is.  So
it failed to add the link flag -fPIC.  Easy to fix, right?  No.

Turns out that LDFLAGS does different things to scons when on the
command line, or in SConscript.  I think this comment describes
the issue:

+# scons uses gcc, or clang, to link. Thus LDFLAGS does not serve its
+# traditional function of providing arguments to ln. LDFLAGS set in the
+# environment before running scons get moved into CCFLAGS by scons.
+# LDFLAGS set while running scons get ignored.
+#
+# This means all uses of LDFLAG in this file ae simply dead code.  Cruft
+# to be removed at a later date.

As this only applies to OpenBSD 7, I'll make the test window really short.
Test now.  If there is silence I'll release Friday.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpaRV6hkCjiE.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]