Separate CXXFLAGS from LDFLAGS/LIBS for modules #296

Closed
opened 2026-10-05 04:10:55 +02:00 by adam · 1 comment
Owner

Currently it uses MODFLAGS for both, and therefore clang on freebsd shows for every module:

Building module stickychan...
c++: warning: argument unused during compilation: '-L/usr/local/lib'
Linking  module stickychan...

Found by fred

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1387543-separate-cxxflags-from-ldflags-libs-for-modules?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).
Currently it uses MODFLAGS for both, and therefore clang on freebsd shows for every module: ``` Building module stickychan... c++: warning: argument unused during compilation: '-L/usr/local/lib' Linking module stickychan... ``` Found by fred ## <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1387543-separate-cxxflags-from-ldflags-libs-for-modules?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:26478571 -->
adam closed this issue 2026-10-05 04:10:55 +02:00
Author
Owner

Fixed in CMake build

Fixed in CMake build <!-- github-comment-id:450726173 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#296