질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

build 및 컴파일시 옵션에 대하여 (-L or -I)

작성자 정보

  • 전병준 작성
  • 작성일

컨텐츠 정보

본문

 

 리눅스포털에서 많은 궁금증을 풀어 나가고 있습니다.

 답변 주시는 여러분 정말 감사합니다.

 다름이 아니라 각종 빌드 시 쓰이는 옵션에 대해 궁금한 게 있는데요.

 CPPFLAGS=-I/usr/local/courier-authlib/include ( 소문자 '엘'이 아닌 대문자 '아이' 입니다.)
 
COURIERAUTHCONFIG=/usr/local/courier-authlib/bin/courierauthconfig
 CFLAGS="-DHAVE_OPEN_SMTP_RELAY"; export CFLAGS
 env LIBS="-L/usr/lib/mysql -lmysqlclient -lz"
   
  ./configure
  --prefix=/usr
  ......

--datadir=/usr/share/courier-imap <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

--sysconfdir=/etc/courier-imap

--libexecdir=/usr/libexec/courier-imap

--localstatedir=/var

--mandir=/usr/share/man

--without-ipv6

  예를 들어 위와 같이 빌드를 하고자 할 때,

  위에서 빨간색으로 표시한 건 어떤 의미를 뜻하는지요?

   혹시 '-L' 은 '~' 랑 같은 뜻을 의미하는 겁니까?

   courier-imap (mysql과 연동) 빌드시 사용하는 옵션들입니다.

   아시는 분 답변 부탁 드립니다.

   감사합니다.

관련자료

댓글 1

이현철님의 댓글

  • 이현철
  • 작성일
아래 내용을 참조하세요.

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS    linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP        C preprocessor
  CXX        C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  F77        Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags
  LIBS        linker flags, e.g. -l<lib>.{a,so} if you have nonstandard
              libraries to link

공지사항


뉴스광장


  • 현재 회원수 :  60,070 명
  • 현재 강좌수 :  35,986 개
  • 현재 접속자 :  350 명