- Timestamp:
-
06/22/12 22:17:51 (12 years ago)
- Author:
-
C Rempel
- Comment:
-
/* Makefile.apr */
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v2
|
v3
|
|
17 | 17 | |
18 | 18 | |
19 | | These are the configurations needed to get Apache Runtime Library 1.4.6 to run on the May 2012 RTEMS development branch. The -Defines were taken from [http://freebsd.active-venture.com/FreeBSD-srctree/newsrc/sys/mman.h.html FreeBSD: Source to sys/mman.h] |
| 19 | These are the configurations needed to get Apache Runtime Library 1.4.6 to run on the May 2012 RTEMS development branch. |
20 | 20 | |
21 | 21 | # |
… |
… |
|
29 | 29 | # |
30 | 30 | |
| 31 | As the Apache Runtime uses non-recursive make, this makes all the o-optimize subdirectories to mirror the subdirectories in the source that will be built |
31 | 32 | all: |
32 | 33 | rm -rf o-optimize test/o-optimize |
… |
… |
|
50 | 51 | mkdir o-optimize/user o-optimize/user/unix |
51 | 52 | mkdir test/o-optimize/ test/o-optimize/internal test/o-optimize/data |
| 53 | |
| 54 | Next, for me, there were several configurations to get the Apache Runtime build system to recognize all the functions available to the RTEMS system. Ac_cv stands for Auto Conf Cached Variables -- one preset BEFORE the configuration. The headers use ac_cv_header_..._h. The functions use ac_cv_func_... The defines use ac_cv_define... The cached configurations can be found in the Auto Conf Manual and the Apache Runtime configure script. The most interesting was pre-setting ac_cv_file__dev_zero, so the configuration would continue through a cross-compile. The second most interesting was defining the size of struct iovec to get the configuration to recognize that iovec was a type defined in RTEMS, (according to the Auto Conf manual, getting the size is how the configuation script determines that a struct is a type). |
| 55 | |
52 | 56 | ac_decision_USE_SHMEM_MMAP_ANON=no \ |
53 | 57 | ac_cv_header_sys_mman_h=yes \ |
… |
… |
|
62 | 66 | ac_cv_gethostbyname_r_arg=char \ |
63 | 67 | ac_cv_working_getnameinfo=no \ |
| 68 | The -Defines were taken from [http://freebsd.active-venture.com/FreeBSD-srctree/newsrc/sys/mman.h.html FreeBSD: Source to sys/mman.h]. The fact that the CFLAGS were -Defined MAY indicate this could be the source of issues for debugging (when I get to the testing phase). |
64 | 69 | CFLAGS='-DPROT_READ=0x01 -DPROT_WRITE=0x02 -DMAP_SHARED=0x0001 -DMAP_ANON=0x1000' \ |
65 | 70 | ./configure \ |