[tor-bugs] #32191 [Core Tor/Tor]: when cross-compiling, lzma and zstd will be detected on build system

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Oct 25 07:35:26 UTC 2019


#32191: when cross-compiling, lzma and zstd will be detected on build system
----------------------------------+------------------------------------
 Reporter:  eighthave             |          Owner:  (none)
     Type:  defect                |         Status:  new
 Priority:  Medium                |      Milestone:  Tor: 0.4.3.x-final
Component:  Core Tor/Tor          |        Version:
 Severity:  Normal                |     Resolution:
 Keywords:  Android 042-backport  |  Actual Points:
Parent ID:                        |         Points:
 Reviewer:                        |        Sponsor:
----------------------------------+------------------------------------

Comment (by teor):

 Replying to [comment:12 eighthave]:
 > PKG_CONFIG_SYSROOT_DIR doesn't seem right because it includes the prefix
 e.g. `/usr`. Here's the snipped from the docs:
 >
 > "Modify -I and -L to use the directories located in target sysroot. this
 option is usefull when crosscompiling package that use pkg-config to
 determine CFLAGS anf LDFLAGS. -I and -L are modified to point to the new
 system root. this means that a -I/usr/include/libfoo will become
 -I/var/target/usr/include/libfoo with a PKG_CONFIG_SYSROOT_DIR equal to
 /var/target (same rule apply to -L)"
 >
 > `export PKG_CONFIG_PATH=$EXTERNAL_ROOT/lib/pkgconfig` has been working
 in the tor-android project.

  Ok, let's work out how to set PKG_CONFIG_PATH in configure?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32191#comment:13>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list