35 include ../../make-rules/prep.mk |
35 include ../../make-rules/prep.mk |
36 include ../../make-rules/configure.mk |
36 include ../../make-rules/configure.mk |
37 include ../../make-rules/ips.mk |
37 include ../../make-rules/ips.mk |
38 |
38 |
39 CONFIGURE_PREFIX = /usr/gnu |
39 CONFIGURE_PREFIX = /usr/gnu |
|
40 CONFIGURE_OPTIONS += --bindir=/usr/gnu/bin |
40 CONFIGURE_OPTIONS += --libdir=/usr/lib |
41 CONFIGURE_OPTIONS += --libdir=/usr/lib |
41 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
42 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
42 CONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp |
43 CONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp |
43 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
44 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
44 |
45 |
45 # To allow stdbuf to correctly find /usr/lib/libstdbuf.so |
|
46 COMPONENT_BUILD_ARGS += pkglibexecdir=/usr/lib |
|
47 |
|
48 # Enable ASLR for this component |
46 # Enable ASLR for this component |
49 ASLR_MODE = $(ASLR_ENABLE) |
47 ASLR_MODE = $(ASLR_ENABLE) |
50 |
48 |
51 # common targets |
49 # common targets |
52 build: $(BUILD_32) |
50 build: $(BUILD_32_and_64) |
53 |
51 |
54 install: $(INSTALL_32) |
52 install: $(INSTALL_32_and_64) |
55 |
53 |
56 # Needed for "gmake test" to work successfully. |
54 # Needed for "gmake test" to work successfully. |
57 # If SHELLOPTS is exported (as it is by the userland makefiles), |
55 # If SHELLOPTS is exported (as it is by the userland makefiles), |
58 # then all shell options get exported to child invocations of bash, |
56 # then all shell options get exported to child invocations of bash, |
59 # which results in test failures due to nounset and xtrace being |
57 # which results in test failures due to nounset and xtrace being |
62 unexport SHELLOPTS |
60 unexport SHELLOPTS |
63 |
61 |
64 # Get the binaries to test from the component proto area. |
62 # Get the binaries to test from the component proto area. |
65 COMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin |
63 COMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin |
66 |
64 |
67 test: install $(TEST_32) |
65 # There are two known test failures: |
|
66 # misc/stdbuf - see CR #15941179 |
|
67 # misc/timeout-parameters - see CR #17425658 |
|
68 test: install $(TEST_64) |
68 |
69 |
69 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
70 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
70 |
71 |
71 include ../../make-rules/depend.mk |
72 include ../../make-rules/depend.mk |