diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-11-17 20:11:12 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-11-17 20:11:12 -0500 |
commit | 47f390f910576d8165f788035473bf8d5ffcf7f0 (patch) | |
tree | f555f20cb7b8671bdacf2984e11c8878abce9af4 | |
parent | 4d598c650a430fa16af5cfd9202d63931823b547 (diff) | |
download | systemtap-steved-47f390f910576d8165f788035473bf8d5ffcf7f0.tar.gz systemtap-steved-47f390f910576d8165f788035473bf8d5ffcf7f0.tar.xz systemtap-steved-47f390f910576d8165f788035473bf8d5ffcf7f0.zip |
PR4037: 32-bit staprun vs. 64-bit kernels just works (tm)
* configure.ac (PROCFLAGS): Don't define it.
* Makefile.am: Don't use it.
-rw-r--r-- | Makefile.am | 8 | ||||
-rw-r--r-- | Makefile.in | 12 | ||||
-rwxr-xr-x | configure | 17 | ||||
-rw-r--r-- | configure.ac | 16 | ||||
-rw-r--r-- | doc/Makefile.in | 1 | ||||
-rw-r--r-- | doc/SystemTap_Tapset_Reference/Makefile.in | 1 | ||||
-rw-r--r-- | grapher/Makefile.in | 1 |
7 files changed, 15 insertions, 41 deletions
diff --git a/Makefile.am b/Makefile.am index f53e4d07..469601c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -151,9 +151,9 @@ staprun_SOURCES = runtime/staprun/staprun.c runtime/staprun/staprun_funcs.c\ runtime/staprun/ctl.c runtime/staprun/common.c staprun_CPPFLAGS = $(AM_CPPFLAGS) -staprun_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) @PIECFLAGS@ -DSINGLE_THREADED -fno-strict-aliasing -fno-builtin-strftime +staprun_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@ -DSINGLE_THREADED -fno-strict-aliasing -fno-builtin-strftime staprun_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@ -staprun_LDADD = @PROCFLAGS@ +staprun_LDADD = if HAVE_NSS staprun_SOURCES += runtime/staprun/modverify.c nsscommon.c @@ -165,9 +165,9 @@ stapio_SOURCES = runtime/staprun/stapio.c \ runtime/staprun/mainloop.c runtime/staprun/common.c \ runtime/staprun/ctl.c \ runtime/staprun/relay.c runtime/staprun/relay_old.c -stapio_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) @PIECFLAGS@ -fno-strict-aliasing -fno-builtin-strftime +stapio_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@ -fno-strict-aliasing -fno-builtin-strftime stapio_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@ -stapio_LDADD = @PROCFLAGS@ -lpthread +stapio_LDADD = -lpthread install-exec-hook: diff --git a/Makefile.in b/Makefile.in index af68b3b4..98b0ea34 100644 --- a/Makefile.in +++ b/Makefile.in @@ -319,7 +319,6 @@ PIECFLAGS = @PIECFLAGS@ PIECXXFLAGS = @PIECXXFLAGS@ PIELDFLAGS = @PIELDFLAGS@ PKG_CONFIG = @PKG_CONFIG@ -PROCFLAGS = @PROCFLAGS@ RANLIB = @RANLIB@ RPM_CFLAGS = @RPM_CFLAGS@ RPM_LIBS = @RPM_LIBS@ @@ -442,19 +441,18 @@ staprun_SOURCES = runtime/staprun/staprun.c \ runtime/staprun/staprun_funcs.c runtime/staprun/ctl.c \ runtime/staprun/common.c $(am__append_16) staprun_CPPFLAGS = $(AM_CPPFLAGS) -staprun_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) @PIECFLAGS@ \ - -DSINGLE_THREADED -fno-strict-aliasing -fno-builtin-strftime \ - $(am__append_17) +staprun_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@ -DSINGLE_THREADED \ + -fno-strict-aliasing -fno-builtin-strftime $(am__append_17) staprun_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@ -staprun_LDADD = @PROCFLAGS@ $(am__append_18) +staprun_LDADD = $(am__append_18) stapio_SOURCES = runtime/staprun/stapio.c \ runtime/staprun/mainloop.c runtime/staprun/common.c \ runtime/staprun/ctl.c \ runtime/staprun/relay.c runtime/staprun/relay_old.c -stapio_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) @PIECFLAGS@ -fno-strict-aliasing -fno-builtin-strftime +stapio_CFLAGS = $(AM_CFLAGS) @PIECFLAGS@ -fno-strict-aliasing -fno-builtin-strftime stapio_LDFLAGS = $(AM_LDFLAGS) @PIELDFLAGS@ -stapio_LDADD = @PROCFLAGS@ -lpthread +stapio_LDADD = -lpthread @BUILD_TRANSLATOR_TRUE@@HAVE_NSS_TRUE@stap_sign_module_SOURCES = modsign.cxx nsscommon.c @BUILD_TRANSLATOR_TRUE@@HAVE_NSS_TRUE@stap_sign_module_CPPFLAGS = -Wall -Werror $(AM_CPPFLAGS) $(nss_CFLAGS) $(nspr_CFLAGS) @BUILD_TRANSLATOR_TRUE@@HAVE_NSS_TRUE@stap_sign_module_LDADD = -lnss3 -lnspr4 @@ -642,7 +642,6 @@ am__EXEEXT_TRUE LTLIBOBJS LIBOBJS subdirs -PROCFLAGS DATE stap_LIBS elfutils_abs_srcdir @@ -8743,19 +8742,9 @@ _ACEOF DATE="$date" - -# This procflags business is for staprun/stapio, which need to -# be compiled with the same bitness as the kernel. On e.g. PPC, -# userspace might be 32-bit default, but staprun needs to be -# 64-bit. See also bug #4037. - -processor=`uname -p` -case "$processor" in -ppc64) PROCFLAGS=-m64 ;; -x86_64) PROCFLAGS=-m64 ;; -*) PROCFLAGS="" -esac - +# Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun +# being compiled on 32-bit userspace but running against 64-bit kernels. +# This is no longer necessary. # Use tr1/unordered_map if available ac_ext=cpp diff --git a/configure.ac b/configure.ac index e92adf5f..cf9379c2 100644 --- a/configure.ac +++ b/configure.ac @@ -578,19 +578,9 @@ date=`date +%Y-%m-%d` AC_DEFINE_UNQUOTED(DATE, "$date", [Configuration/build date]) AC_SUBST(DATE, "$date") - -# This procflags business is for staprun/stapio, which need to -# be compiled with the same bitness as the kernel. On e.g. PPC, -# userspace might be 32-bit default, but staprun needs to be -# 64-bit. See also bug #4037. - -processor=`uname -p` -case "$processor" in -ppc64) PROCFLAGS=-m64 ;; -x86_64) PROCFLAGS=-m64 ;; -*) PROCFLAGS="" -esac -AC_SUBST([PROCFLAGS]) +# Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun +# being compiled on 32-bit userspace but running against 64-bit kernels. +# This is no longer necessary. # Use tr1/unordered_map if available AC_LANG_PUSH(C++) diff --git a/doc/Makefile.in b/doc/Makefile.in index 793abea2..71004965 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -143,7 +143,6 @@ PIECFLAGS = @PIECFLAGS@ PIECXXFLAGS = @PIECXXFLAGS@ PIELDFLAGS = @PIELDFLAGS@ PKG_CONFIG = @PKG_CONFIG@ -PROCFLAGS = @PROCFLAGS@ RANLIB = @RANLIB@ RPM_CFLAGS = @RPM_CFLAGS@ RPM_LIBS = @RPM_LIBS@ diff --git a/doc/SystemTap_Tapset_Reference/Makefile.in b/doc/SystemTap_Tapset_Reference/Makefile.in index 877dfae4..5059b159 100644 --- a/doc/SystemTap_Tapset_Reference/Makefile.in +++ b/doc/SystemTap_Tapset_Reference/Makefile.in @@ -125,7 +125,6 @@ PIECFLAGS = @PIECFLAGS@ PIECXXFLAGS = @PIECXXFLAGS@ PIELDFLAGS = @PIELDFLAGS@ PKG_CONFIG = @PKG_CONFIG@ -PROCFLAGS = @PROCFLAGS@ RANLIB = @RANLIB@ RPM_CFLAGS = @RPM_CFLAGS@ RPM_LIBS = @RPM_LIBS@ diff --git a/grapher/Makefile.in b/grapher/Makefile.in index 0c40336d..34b0cd7a 100644 --- a/grapher/Makefile.in +++ b/grapher/Makefile.in @@ -167,7 +167,6 @@ PIECFLAGS = @PIECFLAGS@ PIECXXFLAGS = @PIECXXFLAGS@ PIELDFLAGS = @PIELDFLAGS@ PKG_CONFIG = @PKG_CONFIG@ -PROCFLAGS = @PROCFLAGS@ RANLIB = @RANLIB@ RPM_CFLAGS = @RPM_CFLAGS@ RPM_LIBS = @RPM_LIBS@ |