# Modification variables CPPFLAGS et LDFLAGS

**URL:** <https://www.debian-fr.org/t/modification-variables-cppflags-et-ldflags/31470>\
**Category:** Programmation\
**Created:** [Février 21, 2016, 1:07 UTC](https://www.debian-fr.org/t/modification-variables-cppflags-et-ldflags/31470 "2016-02-21T01:07:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![limax](https://www.debian-fr.org/user_avatar/www.debian-fr.org/limax/32/3886_2.png) [@limax](https://www.debian-fr.org/u/limax)\
**Post date:** [Février 21, 2016, 1:07 UTC](https://www.debian-fr.org/t/modification-variables-cppflags-et-ldflags/31470/1 "2016-02-21T01:07:45Z")

</div>

Bonjour

je cherche à compiler xcas (actuellement pour une gentoo mais normalement j’ai une debian sid, c’est pourquoi je poste ici).

Je dois informer le compilateur pour une librairie et des headers.

Je me place dans xcas puis si je tape dans une console

`WORKDIR="/home/limax/download/pour_xcas"
FLTKDEV_GIAC="${WORKDIR}/fltk-1.3.x-r6916"
COCOALIB_GIAC="${WORKDIR}/CoCoALib-0.9937"
GIAC="${WORKDIR}/giac-0.9.1/"
CPPFLAGS+=" -I${FLTKDEV_GIAC} -I${COCOALIB_GIAC}/include"
LDFLAGS+=" -L${FLTKDEV_GIAC}/lib -L${COCOALIB_GIAC}/lib"
./configure 
`mes headers ne sont pas trouvé.

Par contre si je rajoute dans le configure de xcas`WORKDIR="/home/limax/download/pour_xcas"
FLTKDEV_GIAC="${WORKDIR}/fltk-1.3.x-r6916"
COCOALIB_GIAC="${WORKDIR}/CoCoALib-0.9937"
GIAC="${WORKDIR}/giac-0.9.1/"
CPPFLAGS+=" -I${FLTKDEV_GIAC} -I${COCOALIB_GIAC}/include"
LDFLAGS+=" -L${FLTKDEV_GIAC}/lib -L${COCOALIB_GIAC}/lib"
` et si j’effectue ./configure mes headers et library sont alors bien trouvé.

Dois forcément mettre CPPFLAGS+=… et LDFLAGS+=… dans le configure et pourquoi ne puis je pas renseigner ceci en console.

merci de m’éclairer

edit: supprimé

---

<div class="post-metadata">

**Author:** ![MisterFreez](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@MisterFreez](https://www.debian-fr.org/u/MisterFreez)\
**Post date:** [Février 21, 2016, 1:07 UTC](https://www.debian-fr.org/t/modification-variables-cppflags-et-ldflags/31470/2 "2016-02-21T01:07:47Z")

</div>

Peut être avec un export ?

---

<div class="post-metadata">

**Author:** ![limax](https://www.debian-fr.org/user_avatar/www.debian-fr.org/limax/32/3886_2.png) [@limax](https://www.debian-fr.org/u/limax)\
**Post date:** [Février 21, 2016, 1:07 UTC](https://www.debian-fr.org/t/modification-variables-cppflags-et-ldflags/31470/3 "2016-02-21T01:07:47Z")

</div>

> [@MisterFreez](#):
>
> Peut être avec un export ?

c’est ce que j’avais mis dans mon edit (donc j’ai eu le bon réflexe)

Je n’y suis pas arrivé non plus avec export. ❓

---

<div class="post-metadata">

**Author:** ![MisterFreez](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/m/bb73d2/32.png) [@MisterFreez](https://www.debian-fr.org/u/MisterFreez)\
**Post date:** [Février 21, 2016, 1:07 UTC](https://www.debian-fr.org/t/modification-variables-cppflags-et-ldflags/31470/4 "2016-02-21T01:07:48Z")

</div>

Tape ./configure -h et regarde comment lui dire les dossiers de chaque bibliothèque par la ligne de commande.
