62 |
|
|
63 |
src_compile() |
src_compile() |
64 |
{ |
{ |
65 |
|
# from gentoo: |
66 |
|
# set a hook to check for each detected library whether it actually works. |
67 |
|
export libscheck=" |
68 |
|
( echo 'main(){}' > '${SRCDIR}'/conftest.c && |
69 |
|
${CC} -o '${SRCDIR}'/conftest '${SRCDIR}'/conftest.c -l\$thislib >/dev/null 2>/dev/null |
70 |
|
) || xxx=/dev/null" |
71 |
|
|
72 |
all-abis ./Configure \ |
all-abis ./Configure \ |
73 |
-des \ |
-des \ |
74 |
-Darchname=${CHOST} \ |
-Darchname=${CHOST} \ |
75 |
-Doptimize='"${CFLAGS}"' \ |
-Doptimize='"${CFLAGS}"' \ |
76 |
|
-Dldflags='"${LDFLAGS}"' \ |
77 |
-Dcc='"${CC}"' \ |
-Dcc='"${CC}"' \ |
78 |
-Dcccdlflags='-fPIC' \ |
-Dcccdlflags='-fPIC' \ |
79 |
-Dccdlflags='-rdynamic' \ |
-Dccdlflags='-rdynamic' \ |
90 |
-Dinstallman3dir=/usr/share/man/man3 \ |
-Dinstallman3dir=/usr/share/man/man3 \ |
91 |
-Dman1ext='1' \ |
-Dman1ext='1' \ |
92 |
-Dman3ext='3pm' \ |
-Dman3ext='3pm' \ |
93 |
-Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir)"' \ |
-Dlibpth='"/usr/local/$(mlibdir) /$(mlibdir) /usr/$(mlibdir) "' \ |
94 |
-Dglibpth='"/$(mlibdir) /usr/$(mlibdir)"' \ |
-Dglibpth='"/$(mlibdir) /usr/$(mlibdir) "' \ |
95 |
|
-Dlocincpth='/usr/include ' \ |
96 |
|| die |
|| die |
97 |
|
|
98 |
mmake || die |
mmake || die |