diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-02-04 12:08:29 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-05 15:26:22 +0000 |
commit | 6bed64764856a46dde0749ea68f4111d8ec34bdb (patch) | |
tree | 5d343c953b66d95e4dd0b2375f0be24a9f8409d2 /Makefile-switchroot.am | |
parent | 85c31647cb3a754e146bd187d6352fec2eef6d1f (diff) | |
download | ostree-6bed64764856a46dde0749ea68f4111d8ec34bdb.tar.gz |
switchroot: Fix split source/build directory
If you have split source and build directories, then building
static ostree-prepare-root fails to find the source files.
https://github.com/ostreedev/ostree/issues/1429
Closes: #1445
Approved by: cgwalters
Diffstat (limited to 'Makefile-switchroot.am')
-rw-r--r-- | Makefile-switchroot.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile-switchroot.am b/Makefile-switchroot.am index 6735c85a..8a8ec570 100644 --- a/Makefile-switchroot.am +++ b/Makefile-switchroot.am @@ -45,7 +45,7 @@ if BUILDOPT_USE_STATIC_COMPILER ostree_boot_SCRIPTS = ostree-prepare-root ostree-prepare-root : $(ostree_prepare_root_SOURCES) - $(STATIC_COMPILER) -o $@ -static $(ostree_prepare_root_SOURCES) $(AM_CPPFLAGS) $(AM_CFLAGS) $(DEFAULT_INCLUDES) + $(STATIC_COMPILER) -o $@ -static $(top_srcdir)/src/switchroot/ostree-prepare-root.c $(AM_CPPFLAGS) $(AM_CFLAGS) $(DEFAULT_INCLUDES) else ostree_boot_PROGRAMS += ostree-prepare-root ostree_prepare_root_CFLAGS = $(AM_CFLAGS) -Isrc/switchroot |