#15 enter doesn't link with LDFLAGS="-Wl,--as-needed"

closed-fixed
other (3)
5
2010-07-25
2010-06-20
No

There is a small "typing error" in src/Makefile.am preventing -Wl,--as-needed from working. Libraries should not be passed from LDFLAGS, but from LDADD in autotools.

Therefore fix is simple:

sed -i -e 's:enter_LDFLAGS:enter_LDADD:' src/Makefile.am

You can reproduce the problem by:

export LDFLAGS="-Wl,--as-needed"
./configure
make

gcc -g -O2 -Wl,--as-needed -o enter -L/usr/lib64 -lImlib2 -lfreetype -lz -lcrypt enter-enter.o enter-server.o enter-utils.o enter-conf.o enter-auth.o enter-log.o enter-login.o enter-display.o enter-gui_image.o enter-gui_label.o enter-gui_input.o enter-gui_widget.o enter-gui.o -lImlib2 -lXau -lXft
enter-login.o: In function `login_authenticate':
/home/ssuominen/downloads/enter-0.0.9/src/login.c:104: undefined reference to `crypt'

Discussion

  • Robert Knutsson

    Robert Knutsson - 2010-07-05
    • labels: --> other
    • assigned_to: nobody --> rob_dobbs
    • status: open --> open-accepted
     
  • Robert Knutsson

    Robert Knutsson - 2010-07-25

    Fixed in SVN, will be included in next release

     
  • Robert Knutsson

    Robert Knutsson - 2010-07-25
    • status: open-accepted --> open-fixed
     
  • Robert Knutsson

    Robert Knutsson - 2010-07-25
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks