Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libselinux: Add CPPFLAGS to Makefile #367

Closed
wants to merge 1 commit into from

Conversation

samsam2310
Copy link

Add CPPFLAGS to Makefile to allow users change the flags of
preprocessor.
We offen use CFLAGS for compiler flags and use CPPFLAGS for
preprocessor.

Signed-off-by: Chung-Sheng Wu [email protected]

libselinux/src/Makefile Outdated Show resolved Hide resolved
@bachradsusi
Copy link
Member

This PR was somehow missed in past. Is it still relevant?

In order to get the patch reviewed and accepted, it's necessary to send it to [email protected] mailing list. The best way is to use git send-email command, e.g.:

git send-email --from='Your Name [email protected]' --to=[email protected] --smtp-server=my.smtp.server --confirm=auto -1

Please also note that the project moved the development to main branch - https://lore.kernel.org/selinux/CAHC9VhTo0LnHwfnF1kfNcosUDdB=MtBQePemR+ju81_GFSuGiA@mail.gmail.com/T/#u

Add CPPFLAGS to Makefile to allow users change the flags of
preprocessor.
We offen use CFLAGS for compiler flags and use CPPFLAGS for
preprocessor.

Signed-off-by: Chung-Sheng Wu <[email protected]>
@samsam2310
Copy link
Author

Sent a mail for the patch. Will close this once it get reviewed.


$(SWIGRUBYSO): $(SWIGRUBYLOBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -L. -shared -o $@ $^ -lselinux $(RUBYLIBS)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -L. -shared -o $@ $^ -lselinux $(RUBYLIBS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use $(CPPFLAGS) when linking

@samsam2310
Copy link
Author

Updated. But created a new PR #398 to merge to main branch.

@samsam2310 samsam2310 closed this Jun 8, 2023
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.

3 participants