45 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
45 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
46 CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
46 CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
47 |
47 |
48 ASLR_MODE = $(ASLR_ENABLE) |
48 ASLR_MODE = $(ASLR_ENABLE) |
49 |
49 |
|
50 # test/system-test is tricky. |
|
51 # Reason being is this component bundles! test results |
|
52 # with the source and those results are compared against |
|
53 # generated results. |
|
54 # Unfortunately these test results embed the string: |
|
55 # /* Command-line: ../src/gperf -L C -F ', 0, 0' -j1 -i 1 -g |
|
56 # which contains the actual command run: ../src/gperf |
|
57 # That string is correct for test but system-test will have /usr/bin/gperf |
|
58 # do a sed is run over the bundled test results with /usr/bin/gperf |
|
59 # so that an internal compare will pass. |
|
60 # Put another way this component does internally what the userland |
|
61 # test infrastructure is doing. |
|
62 |
|
63 # modify bundled test results for system-test |
|
64 COMPONENT_PRE_SYSTEM_TEST_ACTION = \ |
|
65 ($(GSED) -i -e "s|../src/gperf|/usr/bin/gperf|" \ |
|
66 $(SOURCE_DIR)/tests/*.exp) |
|
67 |
|
68 COMPONENT_SYSTEM_TEST_ARGS = GPERF=/usr/bin/gperf |
|
69 |
|
70 # normalize the name of gperf |
|
71 # remove compilation lines |
|
72 COMPONENT_TEST_TRANSFORMS += \ |
|
73 '-e "s|../src/gperf|gperf|g" ' \ |
|
74 '-e "s|/usr/bin/gperf|gperf|g" ' \ |
|
75 '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \ |
|
76 '-e "/^XXX_CC_XXX$$/d" ' |
|
77 |
|
78 |
50 configure: $(CONFIGURE_64) |
79 configure: $(CONFIGURE_64) |
51 |
80 |
52 build: $(BUILD_64) |
81 build: $(BUILD_64) |
53 |
82 |
54 install: $(INSTALL_64) |
83 install: $(INSTALL_64) |
55 |
84 |
56 test: $(TEST_64) |
85 test: $(TEST_64) |
57 |
86 |
58 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
87 # must build tests before use |
|
88 system-test: build $(SYSTEM_TEST_64) |
59 |
89 |
60 |
90 |
61 REQUIRED_PACKAGES += system/library |
91 REQUIRED_PACKAGES += system/library |
62 REQUIRED_PACKAGES += system/library/c++-runtime |
92 REQUIRED_PACKAGES += system/library/c++-runtime |
63 REQUIRED_PACKAGES += system/library/math |
93 REQUIRED_PACKAGES += system/library/math |