Skip to content

improve Makefile portability and hardening - #10

Open
r1w1s1 wants to merge 1 commit into
astier:masterfrom
r1w1s1:makefile-portability-hardening
Open

improve Makefile portability and hardening#10
r1w1s1 wants to merge 1 commit into
astier:masterfrom
r1w1s1:makefile-portability-hardening

Conversation

@r1w1s1

@r1w1s1 r1w1s1 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Make the compiler configurable with CC ?= cc.
  • Remove non-portable -march=native.
  • Replace GNU Make's $< with main.c for OpenBSD Make compatibility.

Distribution-specific hardening is intentionally left to package maintainers.

Fixes #8.

Testing

Built successfully with:

  • GCC 11.2.0
  • Clang 13.0.0
  • GCC 15.3.0
  • Clang 22.1.8

@r1w1s1
r1w1s1 force-pushed the makefile-portability-hardening branch from 7829100 to 0ed3cb3 Compare August 10, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(OpenBSD) Using $< in a non-suffix rule context is a GNUmake idiom (Makefile:18)

1 participant