CyberNinjas / pam_aad

Azure Active Directory PAM Module
GNU General Public License v3.0
54 stars 19 forks source link

Integrate buildPam.sh into install target #13

Closed Jnchi closed 5 years ago

Jnchi commented 5 years ago

sudo make install --README.md

Jnchi commented 5 years ago
make V=99
/bin/bash ./libtool  --tag=CC   --mode=link gcc  -g -O2  -fPIC -fno-stack-protector -module -shared -export-symbols-regex "pam_sm_(setcred|open_session|authenticate)"  -o pam_aad.la -rpath /usr/local/lib/security src/pam_aad_la-pam_aad.lo src/pam_aad_la-rest.lo src/pam_aad_la-cJSON.lo src/pam_aad_la-utils.lo src/pam_aad_la-jwt.lo -lpam -lssl -lcrypto -lm -ljwt -lpam -lm -ljwt -lcrypto
libtool: link: /usr/bin/nm -B  src/.libs/pam_aad_la-pam_aad.o src/.libs/pam_aad_la-rest.o src/.libs/pam_aad_la-cJSON.o src/.libs/pam_aad_la-utils.o src/.libs/pam_aad_la-jwt.o   | sed -n -e 's/^.*[   ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[      ][       ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/pam_aad.exp
libtool: link: /bin/grep -E -e "pam_sm_(setcred|open_session|authenticate)" ".libs/pam_aad.exp" > ".libs/pam_aad.expT"
libtool: link: mv -f ".libs/pam_aad.expT" ".libs/pam_aad.exp"
libtool: link: echo "{ global:" > .libs/pam_aad.ver
libtool: link:  cat .libs/pam_aad.exp | sed -e "s/\(.*\)/\1;/" >> .libs/pam_aad.ver
libtool: link:  echo "local: *; };" >> .libs/pam_aad.ver
libtool: link:  gcc -shared  -fPIC -DPIC  src/.libs/pam_aad_la-pam_aad.o src/.libs/pam_aad_la-rest.o src/.libs/pam_aad_la-cJSON.o src/.libs/pam_aad_la-utils.o src/.libs/pam_aad_la-jwt.o   -lssl -lpam -lm -ljwt -lcrypto  -g -O2   -Wl,-soname -Wl,pam_aad.so.0 -Wl,-version-script -Wl,.libs/pam_aad.ver -o .libs/pam_aad.so.0.0.0
libtool: link: (cd ".libs" && rm -f "pam_aad.so.0" && ln -s "pam_aad.so.0.0.0" "pam_aad.so.0")
libtool: link: (cd ".libs" && rm -f "pam_aad.so" && ln -s "pam_aad.so.0.0.0" "pam_aad.so")
libtool: link: ( cd ".libs" && rm -f "pam_aad.la" && ln -s "../pam_aad.la" "pam_aad.la" )
Jnchi commented 5 years ago
LDFLAGS=-x -Wl,--strip-debug -Wl,--build-id=none
Jnchi commented 5 years ago

Resources:

See also:

Jnchi commented 5 years ago
Jnchi commented 5 years ago
autoreconf -fiv
./configure --with-pam-dir=/lib/x86_64-linux-gnu/security
make
sudo make install
Jnchi commented 5 years ago

https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_mono/ld.html