[Tile-serving] [openstreetmap/mod_tile] Added build & test on Fedora 34 (#248)

Tom Hughes notifications at github.com
Sun Aug 1 10:37:48 UTC 2021


@tomhughes commented on this pull request.



> @@ -41,6 +41,11 @@ jobs:
         run: ./autogen.sh
       - name: Run `./configure`
         run: ./configure
+      - name: Fix `-pthread` in `GLIB_CFLAGS`

So the `glib-2.0` pkg-config module quite reasonably includes `-pthread` in the compiler flags - it is a valid compiler flag and it does a bit more than just linking the library.

The makefile then passes `$(GLIB_CFLAGS)` when invoking `apxs` but apxs only actually understands a handful of common compiler flags like `-D`, `-I` and `-l` so that is kind of buggy really - other flags need a `-Wc` to tell it they are a compiler bug.

So for apxs you really want `-Wc,-pthread` as the argument.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/248#discussion_r680490448
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210801/6cd7394b/attachment.htm>


More information about the Tile-serving mailing list