Skip to content

Commit 27a984e

Browse files
committed
Use both DESTDIR and prefix
The DESTDIR variable is not intended as a prefix substitute, but as an additonal staging pre-path. Concatenate the two when available. Signed-off-by: Luca Bruno <[email protected]>
1 parent 2f95f7d commit 27a984e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ endif
537537

538538
ifneq ($(findstring install,$(MAKECMDGOALS)),)
539539
ifdef DESTDIR
540-
CFG_INFO := $(info cfg: setting CFG_PREFIX via DESTDIR, $(DESTDIR))
541-
CFG_PREFIX:=$(DESTDIR)
540+
CFG_INFO := $(info cfg: setting CFG_PREFIX via DESTDIR, $(DESTDIR)/$(CFG_PREFIX))
541+
CFG_PREFIX:=$(DESTDIR)/$(CFG_PREFIX)
542542
export CFG_PREFIX
543543
endif
544544

0 commit comments

Comments
 (0)