Github messages for mblaze
 help / color / mirror / Atom feed
* [PR PATCH] allow to override Makefile OS variable
@ 2022-01-11 10:41 svlobanov
  2022-01-11 11:24 ` [PR PATCH] [Closed]: " svlobanov
  2022-01-11 11:24 ` svlobanov
  0 siblings, 2 replies; 3+ messages in thread
From: svlobanov @ 2022-01-11 10:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

There is a new pull request by svlobanov against master on the mblaze repository

https://github.com/svlobanov/mblaze allow-override-OS
https://github.com/leahneukirchen/mblaze/pull/220

allow to override Makefile OS variable
Overriding OS is useful for cross-compiling if build OS and
target OS are different (e.g. build on MacOS for Linux)

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>

A patch file from https://github.com/leahneukirchen/mblaze/pull/220.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-allow-override-OS-220.patch --]
[-- Type: text/x-diff, Size: 794 bytes --]

From b6bc4f3c748abac693cb0d1e865548949d2b0ff4 Mon Sep 17 00:00:00 2001
From: "Sergey V. Lobanov" <sergey@lobanov.in>
Date: Tue, 11 Jan 2022 13:34:03 +0300
Subject: [PATCH] allow to override Makefile OS variable

Overriding OS is useful for cross-compiling if build OS and
target OS are different (e.g. build on MacOS for Linux)

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
---
 GNUmakefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GNUmakefile b/GNUmakefile
index 07a0b1a..4ce8fba 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -2,7 +2,7 @@ CFLAGS?=-g -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2
 override CFLAGS:=-Wall -Wno-switch -Wextra $(CFLAGS)
 LDLIBS=-lrt
 
-OS := $(shell uname)
+OS ?= $(shell uname)
 
 ifeq ($(OS),OpenBSD)
 LOCALBASE=/usr/local

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: allow to override Makefile OS variable
  2022-01-11 10:41 [PR PATCH] allow to override Makefile OS variable svlobanov
@ 2022-01-11 11:24 ` svlobanov
  2022-01-11 11:24 ` svlobanov
  1 sibling, 0 replies; 3+ messages in thread
From: svlobanov @ 2022-01-11 11:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

There's a closed pull request on the mblaze repository

allow to override Makefile OS variable
https://github.com/leahneukirchen/mblaze/pull/220

Description:
Overriding OS is useful for cross-compiling if build OS and
target OS are different (e.g. build on MacOS for Linux)

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: allow to override Makefile OS variable
  2022-01-11 10:41 [PR PATCH] allow to override Makefile OS variable svlobanov
  2022-01-11 11:24 ` [PR PATCH] [Closed]: " svlobanov
@ 2022-01-11 11:24 ` svlobanov
  1 sibling, 0 replies; 3+ messages in thread
From: svlobanov @ 2022-01-11 11:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

New comment by svlobanov on mblaze repository

https://github.com/leahneukirchen/mblaze/pull/220#issuecomment-1009868027

Comment:
Please ignore this

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-11 11:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 10:41 [PR PATCH] allow to override Makefile OS variable svlobanov
2022-01-11 11:24 ` [PR PATCH] [Closed]: " svlobanov
2022-01-11 11:24 ` svlobanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).