Skip to content

Commit

Permalink
Merge pull request #5890 from janekmi/libpmem_CFLAGS_fix
Browse files Browse the repository at this point in the history
common: fix libpmem CFLAGS
  • Loading branch information
janekmi committed Oct 24, 2023
2 parents eb24429 + be8657f commit 0dec972
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
* Unreleased *

This release:
- ...
- Significantly reduces the libpmem's stack usage.

Tue Aug 8 2023 Oksana Sałyk <oksana.salyk@intel.com>

Expand Down
3 changes: 3 additions & 0 deletions src/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# src/Makefile.inc -- common Makefile rules for PMDK
#

# Note: Please do not set CFLAGS before this file is included unless you do not
# want to use default CFLAGS.

TOP := $(dir $(lastword $(MAKEFILE_LIST)))..

include $(TOP)/src/common.inc
Expand Down
6 changes: 2 additions & 4 deletions src/libpmem/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ ifeq ($(OS_DIMM),ndctl)
SOURCE +=\
region_namespace_ndctl.c\
numa_ndctl.c
CFLAGS += $(LIBNDCTL_CFLAGS)
LIBS += $(LIBNDCTL_LIBS)
else
SOURCE +=\
region_namespace_none.c\
Expand All @@ -68,5 +66,5 @@ include ../Makefile.inc

include $(PMEM2)/$(ARCH)/flags.inc

CFLAGS += -I.
LIBS += -pthread
CFLAGS += -I. $(LIBNDCTL_CFLAGS)
LIBS += -pthread $(LIBNDCTL_LIBS)

0 comments on commit 0dec972

Please sign in to comment.