All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: [PATCH lksctp-tools] automake: fix include dir for the now autogenerated header
Date: Tue, 30 Apr 2019 14:37:41 +0000	[thread overview]
Message-ID: <0b162bbbbbc8d057c751d749c193b158408328f1.1556634957.git.marcelo.leitner@gmail.com> (raw)

After 9607dd85e70a ("netinet/sctp.h: dynamically build based on system
setup") the header file is generated on the builddir and won't be
located in the srcdir anymore. This broke builds using different dirs
for building other than the src dir.

Fix it by telling automake to use the include dir based on top_builddir
instead.

Fixes #30

Fixes: 9607dd85e70a ("netinet/sctp.h: dynamically build based on system setup")
Reported-by: Alexander Gallego
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
---
 src/apps/Makefile.am       | 2 +-
 src/func_tests/Makefile.am | 2 +-
 src/lib/Makefile.am        | 2 +-
 src/testlib/Makefile.am    | 2 +-
 src/withsctp/Makefile.am   | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/apps/Makefile.am b/src/apps/Makefile.am
index 7e33b9c87f003cadcd1f674012b0eb4147c55c71..7e32306a61b985bf9efbe088a30bef9e2154e1d4 100644
--- a/src/apps/Makefile.am
+++ b/src/apps/Makefile.am
@@ -4,7 +4,7 @@ include $(top_srcdir)/Makefile.rules
 include $(top_srcdir)/Makefile.dirs
 
 # General compilation flags
-AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib \
+AM_CPPFLAGS = -I. -I$(top_builddir)/src/include -I$(top_srcdir)/src/testlib \
               -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes \
               -Wimplicit-function-declaration
 
diff --git a/src/func_tests/Makefile.am b/src/func_tests/Makefile.am
index 495adcf352caf2aa446b4dec599a289a6bb05205..e5bf454cde73bd7944e5543c90251fdbb6eb8271 100644
--- a/src/func_tests/Makefile.am
+++ b/src/func_tests/Makefile.am
@@ -4,7 +4,7 @@ include $(top_srcdir)/Makefile.rules
 include $(top_srcdir)/Makefile.dirs
 
 # General compilation flags
-AM_CPPFLAGS = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib \
+AM_CPPFLAGS = -I. -I$(top_builddir)/src/include -I$(top_srcdir)/src/testlib \
               -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes \
               -Wimplicit-function-declaration
 
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 1d62175c71b7e9b7b59d987c5781902d5f96d9db..1296caae653b60bc53d7aaa3d2eefbb78f9ff63a 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -4,7 +4,7 @@ include $(top_srcdir)/Makefile.rules
 include $(top_srcdir)/Makefile.dirs
 
 # General compilation flags
-AM_CPPFLAGS = -I$(top_srcdir)/src/include
+AM_CPPFLAGS = -I$(top_builddir)/src/include
 
 lib_LTLIBRARIES = libsctp.la
 
diff --git a/src/testlib/Makefile.am b/src/testlib/Makefile.am
index fae6bbcef610874d5e64951ca21e6df160112cca..b94961109591c097ab9f7b9c1aa34bce89e5a430 100644
--- a/src/testlib/Makefile.am
+++ b/src/testlib/Makefile.am
@@ -5,7 +5,7 @@ include $(top_srcdir)/Makefile.rules
 include $(top_srcdir)/Makefile.dirs
 
 # General compilation flags
-AM_CPPFLAGS = -I$(top_srcdir)/src/include
+AM_CPPFLAGS = -I$(top_builddir)/src/include
 
 noinst_LTLIBRARIES = libsctputil.la
 libsctputil_la_SOURCES = sctputil.c sctputil.h
diff --git a/src/withsctp/Makefile.am b/src/withsctp/Makefile.am
index 1f6ca37062d6c85ad6f127d72f23514109c92d9c..31575886d703584d79a889eba104f36295a3f708 100644
--- a/src/withsctp/Makefile.am
+++ b/src/withsctp/Makefile.am
@@ -10,7 +10,7 @@ include $(top_srcdir)/Makefile.rules
 bin_PROGRAMS = checksctp
 bin_SCRIPTS = withsctp
 
-AM_CPPFLAGS=-I$(top_srcdir)/src/include
+AM_CPPFLAGS=-I$(top_builddir)/src/include
 pkglib_LTLIBRARIES = libwithsctp.la
 libwithsctp_la_SOURCES = sctp_load_libs.c sctp_socket.c sctp_bind.c \
 	sctp_sockopt.c sctp_socket.h
-- 
2.20.1

             reply	other threads:[~2019-04-30 14:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-30 14:37 Marcelo Ricardo Leitner [this message]
2019-05-01 12:24 ` [PATCH lksctp-tools] automake: fix include dir for the now autogenerated header Neil Horman
2019-05-02 11:52 ` Marcelo Ricado Leitner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0b162bbbbbc8d057c751d749c193b158408328f1.1556634957.git.marcelo.leitner@gmail.com \
    --to=marcelo.leitner@gmail.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.