Skip to content

Fix configure adding trailing space to PKG_CPPFLAGS each run#34

Open
trevorld wants to merge 1 commit intoropensci:masterfrom
trevorld:configure-tweak
Open

Fix configure adding trailing space to PKG_CPPFLAGS each run#34
trevorld wants to merge 1 commit intoropensci:masterfrom
trevorld:configure-tweak

Conversation

@trevorld
Copy link
Contributor

  • When pkg-config --cflags libjpeg returns empty (standard include path), the sed substitution was replacing -Ilibqpdf with -Ilibqpdf which adds a trailing space to src/Makevars every single time you run devtools::load_all().
  • This change guards the sed calls so they only run when the flags are non-empty.

When `pkg-config --cflags libjpeg` returns empty (standard include path),
the sed substitution was replacing `-Ilibqpdf` with `-Ilibqpdf `, adding
a trailing space. Guard the sed calls so they only run when the flags are
non-empty.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant