Summary: | ASTERISK-05566: -L /usr/local/lib needed in Makefiles on FreeBSD | ||
Reporter: | Leif Neland (lenne_dk) | Labels: | |
Date Opened: | 2005-11-11 03:05:43.000-0600 | Date Closed: | 2005-11-13 22:24:08.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | When installing from ports, libs are installed in /usr/local/lib I found these changes needed, I won't post a real patch, because I'm not fluent in "make" to make it conditional on FreeBSD Index: asterisk/cdr/Makefile =================================================================== RCS file: /usr/cvsroot/asterisk/cdr/Makefile,v retrieving revision 1.33 diff -d -r1.33 Makefile 57a58 > LIBS+=-L /usr/local/lib 125c126 < $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc $(MLFLAGS) --- > $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc $(MLFLAGS) -L /usr/local/lib 128c129 < $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -ltds $(MLFLAGS) --- > $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -ltds $(MLFLAGS) -L /usr/local/lib Index: asterisk/res/Makefile =================================================================== RCS file: /usr/cvsroot/asterisk/res/Makefile,v retrieving revision 1.29 diff -d -r1.29 Makefile 86c86 < $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc --- > $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L /usr/local/lib -lodbc | ||
Comments: | By: Tilghman Lesher (tilghman) 2005-11-11 08:27:08.000-0600 If you're running FreeBSD, you should have /usr/local/lib in your /etc/ld.so.conf or /etc/ld-elf.so.conf OR set ldconfig_paths in your /etc/rc.conf and reboot By: Leif Neland (lenne_dk) 2005-11-12 11:34:16.000-0600 Unless I'm mistaken, /etc/ld.so.conf or /etc/ld-elf.so.conf does only affect loading of libs at runtime, not at compile time By: Leif Neland (lenne_dk) 2005-11-13 21:57:15.000-0600 Newest head compiles. Thanx. |