34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From ba70232521c53b4f32733ba023b82157e6de6cdd Mon Sep 17 00:00:00 2001
|
|
From: luofeng <luofeng13@huawei.com>
|
|
Date: Thu, 21 Mar 2024 21:00:42 +0800
|
|
Subject: [PATCH] support clang build
|
|
|
|
---
|
|
db.1.85/PORT/Makefile | 2 +-
|
|
db.1.85/PORT/linux/Makefile | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/db.1.85/PORT/Makefile b/db.1.85/PORT/Makefile
|
|
index 383b259..fc7518e 100644
|
|
--- a/db.1.85/PORT/Makefile
|
|
+++ b/db.1.85/PORT/Makefile
|
|
@@ -99,4 +99,4 @@ memmove.o:
|
|
mktemp.o:
|
|
${CC} -c -O -I. -Iinclude clib/mktemp.c
|
|
snprintf.o:
|
|
- ${CC} -c -O -I. -Iinclude clib/snprintf.c
|
|
+ ${CC} -c $(CFLAGS) -O -I. -Iinclude clib/snprintf.c
|
|
diff --git a/db.1.85/PORT/linux/Makefile b/db.1.85/PORT/linux/Makefile
|
|
index 40b7c55..6a70e2c 100644
|
|
--- a/db.1.85/PORT/linux/Makefile
|
|
+++ b/db.1.85/PORT/linux/Makefile
|
|
@@ -98,4 +98,4 @@ memmove.o:
|
|
mktemp.o:
|
|
${CC} -c -O -I. -Iinclude clib/mktemp.c
|
|
snprintf.o:
|
|
- ${CC} -c -O -I. -Iinclude clib/snprintf.c
|
|
+ ${CC} -c $(CFLAGS) -O -I. -Iinclude clib/snprintf.c
|
|
--
|
|
2.19.1
|
|
|