File: addlibrarypath.m4

package info (click to toggle)
gnustep-base 1.26.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 27,260 kB
  • sloc: objc: 204,878; ansic: 32,160; sh: 157; makefile: 128; cpp: 122; xml: 32
file content (20 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
dnl librarypath macros
dnl  Copyright (C) 2005 Free Software Foundation
dnl  Copying and distribution of this file, with or without modification,
dnl  are permitted in any medium without royalty provided the copyright
dnl  notice and this notice are preserved.
dnl
dnl  Written by Andrew Ruder
dnl GS_ADD_LIBRARY_PATH
dnl Adds -L$1 -Wl,-R$1 on netbsd and -L$1 elsewhere to LDFLAGS and LDIR_FLAGS
AC_DEFUN([GS_ADD_LIBRARY_PATH], [
case "$target_os" in
	netbsd*)	
		LDFLAGS="$LDFLAGS -L$1 -Wl,-R$1"
		LDIR_FLAGS="$LDIR_FLAGS -Wl,-R$1 -L$1";;
	*)	
		LDFLAGS="$LDFLAGS -L$1"
		LDIR_FLAGS="$LDIR_FLAGS -L$1";;
esac
])